[WebUI] Update from config upon showing plugin page

This commit is contained in:
Calum Lind 2014-08-04 21:42:48 +01:00
parent 936ae3b171
commit e8288eec6a
3 changed files with 3 additions and 8 deletions

View File

@ -210,7 +210,7 @@ Deluge.ux.preferences.ExecutePage = Ext.extend(Ext.Panel, {
} }
}); });
deluge.preferences.on('show', this.onPreferencesShow, this); this.on('show', this.onPreferencesShow, this);
}, },
updateCommands: function() { updateCommands: function() {

View File

@ -57,7 +57,7 @@ Deluge.ux.preferences.ExtractorPage = Ext.extend(Ext.Panel, {
boxLabel: _('Create torrent name sub-folder') boxLabel: _('Create torrent name sub-folder')
}); });
deluge.preferences.on('show', this.updateConfig, this); this.on('show', this.updateConfig, this);
}, },
onApply: function() { onApply: function() {

View File

@ -565,7 +565,7 @@ Deluge.ux.preferences.SchedulerPage = Ext.extend(Ext.Panel, {
decimalPrecision: 0 decimalPrecision: 0
}); });
deluge.preferences.on('show', this.updateConfig, this); this.on('show', this.updateConfig, this);
}, },
onRender: function(ct, position) { onRender: function(ct, position) {
@ -593,11 +593,6 @@ Deluge.ux.preferences.SchedulerPage = Ext.extend(Ext.Panel, {
this.onApply(); this.onApply();
}, },
afterRender: function() {
Deluge.ux.preferences.SchedulerPage.superclass.afterRender.call(this);
this.updateConfig();
},
updateConfig: function() { updateConfig: function() {
deluge.client.scheduler.get_config({ deluge.client.scheduler.get_config({
success: function(config) { success: function(config) {