mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-13 20:06:23 +00:00
add an onOk event handler that saves and closes the preferences window
This commit is contained in:
parent
78df3d10ce
commit
2de8069c9f
@ -108,6 +108,11 @@ Ext.deluge.PreferencesWindow = Ext.extend(Ext.Window, {
|
||||
onClose: function() {
|
||||
this.hide();
|
||||
},
|
||||
|
||||
onOk: function() {
|
||||
Deluge.Client.core.set_config(this.optionsManager.getDirty());
|
||||
this.hide();
|
||||
},
|
||||
|
||||
addPage: function(page) {
|
||||
var store = this.categoriesGrid.getStore();
|
||||
@ -161,4 +166,4 @@ Ext.deluge.PreferencesWindow = Ext.extend(Ext.Window, {
|
||||
}
|
||||
});
|
||||
|
||||
Deluge.Preferences = new Ext.deluge.PreferencesWindow();
|
||||
Deluge.Preferences = new Ext.deluge.PreferencesWindow();
|
||||
|
Loading…
x
Reference in New Issue
Block a user