mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-19 15:59:57 +00:00
fix for when the login window hasn't been rendered
This commit is contained in:
parent
6b8ff92fe2
commit
7f597aff70
@ -101,8 +101,6 @@ Copyright:
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
Deluge.Events.fire('login');
|
||||
this.loginForm.items.get('password').setRawValue('');
|
||||
this.hide();
|
||||
} else {
|
||||
this.show(true);
|
||||
}
|
||||
@ -164,6 +162,7 @@ Copyright:
|
||||
onShow: function() {
|
||||
var passwordField = this.loginForm.items.get('password');
|
||||
passwordField.focus(false, 150);
|
||||
passwordField.setRawValue('');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user