add an onOk event handler that saves and closes the preferences window
This commit is contained in:
parent
78df3d10ce
commit
2de8069c9f
@ -109,6 +109,11 @@ Ext.deluge.PreferencesWindow = Ext.extend(Ext.Window, {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onOk: function() {
|
||||||
|
Deluge.Client.core.set_config(this.optionsManager.getDirty());
|
||||||
|
this.hide();
|
||||||
|
},
|
||||||
|
|
||||||
addPage: function(page) {
|
addPage: function(page) {
|
||||||
var store = this.categoriesGrid.getStore();
|
var store = this.categoriesGrid.getStore();
|
||||||
var name = page.title;
|
var name = page.title;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user