webui: fix closing the connection manager
Don't override the onHide method in the ConnectionManager, this was stopping the window from being able to close.
This commit is contained in:
parent
fb8f1e7ebc
commit
43cb787b44
|
@ -46,8 +46,8 @@ Ext.define('Deluge.ConnectionManager', {
|
||||||
|
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
this.callParent(arguments);
|
this.callParent(arguments);
|
||||||
this.on('hide', this.onHide, this);
|
this.afterMethod('onHide', this.afterHide, this);
|
||||||
this.on('show', this.onShow, this);
|
this.afterMethod('onShow', this.afterShow, this);
|
||||||
|
|
||||||
deluge.events.on('login', this.onLogin, this);
|
deluge.events.on('login', this.onLogin, this);
|
||||||
deluge.events.on('logout', this.onLogout, this);
|
deluge.events.on('logout', this.onLogout, this);
|
||||||
|
@ -261,7 +261,7 @@ Ext.define('Deluge.ConnectionManager', {
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
onHide: function() {
|
afterHide: function() {
|
||||||
if (this.running) window.clearInterval(this.running);
|
if (this.running) window.clearInterval(this.running);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ Ext.define('Deluge.ConnectionManager', {
|
||||||
|
|
||||||
// FIXME: Find out why this is being fired twice
|
// FIXME: Find out why this is being fired twice
|
||||||
// private
|
// private
|
||||||
onShow: function() {
|
afterShow: function() {
|
||||||
if (!this.addHostButton) {
|
if (!this.addHostButton) {
|
||||||
var buttons = this.grid.query('button');
|
var buttons = this.grid.query('button');
|
||||||
this.addHostButton = buttons[0];
|
this.addHostButton = buttons[0];
|
||||||
|
|
Loading…
Reference in New Issue