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…
Reference in New Issue