mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-21 08:50:20 +00:00
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();
|
||||
},
|
||||
|
||||
onOk: function() {
|
||||
Deluge.Client.core.set_config(this.optionsManager.getDirty());
|
||||
this.hide();
|
||||
},
|
||||
|
||||
addPage: function(page) {
|
||||
var store = this.categoriesGrid.getStore();
|
||||
var name = page.title;
|
||||
|
Loading…
x
Reference in New Issue
Block a user