diff options
author | DjLegolas <DjLegolas@users.noreply.github.com> | 2019-06-24 21:02:58 +0300 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-25 11:51:59 +0100 |
commit | 3f9ae337932da550f2623daa6dedd9c3e0e5cfb3 (patch) | |
tree | 9e13113703839c074b8a078dbd2bdf4d5fb5d2bf | |
parent | 0c7f53e3056ba37d081289b83419afd2c3841c5e (diff) | |
download | deluge-3f9ae337932da550f2623daa6dedd9c3e0e5cfb3.tar.gz deluge-3f9ae337932da550f2623daa6dedd9c3e0e5cfb3.tar.bz2 deluge-3f9ae337932da550f2623daa6dedd9c3e0e5cfb3.zip |
[Label] Fix Options/Add windows not reopening
When a user clicked ESC key or X button, the Options and Add windows
didn't open again. This happened because the windows were closed and
not hidden, which deleted the instance of those windows.
This fix changed the behavior of the close action to 'hide'.
-rw-r--r-- | deluge/plugins/Label/deluge_label/data/label.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/plugins/Label/deluge_label/data/label.js b/deluge/plugins/Label/deluge_label/data/label.js index cb0c1fe15..ba7a7ac1d 100644 --- a/deluge/plugins/Label/deluge_label/data/label.js +++ b/deluge/plugins/Label/deluge_label/data/label.js @@ -54,6 +54,7 @@ Deluge.ux.AddLabelWindow = Ext.extend(Ext.Window, { title: _('Add Label'), width: 300, height: 100, + closeAction: 'hide', initComponent: function() { Deluge.ux.AddLabelWindow.superclass.initComponent.call(this); @@ -124,6 +125,7 @@ Deluge.ux.LabelOptionsWindow = Ext.extend(Ext.Window, { title: _('Label Options'), width: 325, height: 240, + closeAction: 'hide', initComponent: function() { Deluge.ux.LabelOptionsWindow.superclass.initComponent.call(this); |