mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Webui applies changes when OK clicked in Preferences
This commit is contained in:
parent
56f2283e3e
commit
863fd7d2b7
1 changed files with 27 additions and 16 deletions
|
@ -239,7 +239,18 @@ Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, {
|
||||||
|
|
||||||
// private
|
// private
|
||||||
onOk: function() {
|
onOk: function() {
|
||||||
deluge.client.core.set_config(this.optionsManager.getDirty());
|
var changed = this.optionsManager.getDirty();
|
||||||
|
if (!Ext.isObjectEmpty(changed)) {
|
||||||
|
deluge.client.core.set_config(changed, {
|
||||||
|
success: this.onSetConfig,
|
||||||
|
scope: this
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var page in this.pages) {
|
||||||
|
if (this.pages[page].onOk) this.pages[page].onOk();
|
||||||
|
}
|
||||||
|
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue