Skip to content

Commit

Permalink
[Label] Fix Options/Add windows not reopening
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
DjLegolas authored and cas-- committed Jun 25, 2019
1 parent 0c7f53e commit 3f9ae33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deluge/plugins/Label/deluge_label/data/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3f9ae33

Please sign in to comment.