[WebUI] Update from config upon showing plugin page
This commit is contained in:
parent
936ae3b171
commit
e8288eec6a
|
@ -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() {
|
||||
|
|
|
@ -57,7 +57,7 @@ Deluge.ux.preferences.ExtractorPage = Ext.extend(Ext.Panel, {
|
|||
boxLabel: _('Create torrent name sub-folder')
|
||||
});
|
||||
|
||||
deluge.preferences.on('show', this.updateConfig, this);
|
||||
this.on('show', this.updateConfig, this);
|
||||
},
|
||||
|
||||
onApply: function() {
|
||||
|
|
|
@ -565,7 +565,7 @@ Deluge.ux.preferences.SchedulerPage = Ext.extend(Ext.Panel, {
|
|||
decimalPrecision: 0
|
||||
});
|
||||
|
||||
deluge.preferences.on('show', this.updateConfig, this);
|
||||
this.on('show', this.updateConfig, this);
|
||||
},
|
||||
|
||||
onRender: function(ct, position) {
|
||||
|
@ -593,11 +593,6 @@ Deluge.ux.preferences.SchedulerPage = Ext.extend(Ext.Panel, {
|
|||
this.onApply();
|
||||
},
|
||||
|
||||
afterRender: function() {
|
||||
Deluge.ux.preferences.SchedulerPage.superclass.afterRender.call(this);
|
||||
this.updateConfig();
|
||||
},
|
||||
|
||||
updateConfig: function() {
|
||||
deluge.client.scheduler.get_config({
|
||||
success: function(config) {
|
||||
|
|
Loading…
Reference in New Issue