mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
fix the data checking
This commit is contained in:
parent
6db92cccb3
commit
435ef112fb
1 changed files with 4 additions and 1 deletions
|
@ -24,6 +24,9 @@ Deluge.UI = {
|
||||||
filterChanged: this.filterChanged.bindWithEvent(this)
|
filterChanged: this.filterChanged.bindWithEvent(this)
|
||||||
};
|
};
|
||||||
this.loadUi.delay(250, this);
|
this.loadUi.delay(250, this);
|
||||||
|
window.addEvent('load', function(e) {
|
||||||
|
this.vbox.calculatePositions();
|
||||||
|
}.bindWithEvent(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
loadUi: function() {
|
loadUi: function() {
|
||||||
|
@ -146,7 +149,7 @@ Deluge.UI = {
|
||||||
},
|
},
|
||||||
|
|
||||||
updated: function(data) {
|
updated: function(data) {
|
||||||
if ($defined(data)) return;
|
if (!$defined(data)) return;
|
||||||
this.torrents = new Hash(data.torrents);
|
this.torrents = new Hash(data.torrents);
|
||||||
this.stats = data.stats;
|
this.stats = data.stats;
|
||||||
this.filters = data.filters;
|
this.filters = data.filters;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue