mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
improve the connection manager
This commit is contained in:
parent
3e8c17b071
commit
6b8ff92fe2
1 changed files with 1 additions and 5 deletions
|
@ -302,12 +302,8 @@ Copyright:
|
||||||
},
|
},
|
||||||
|
|
||||||
onGetHosts: function(hosts) {
|
onGetHosts: function(hosts) {
|
||||||
var store = this.grid.getStore();
|
this.grid.getStore().loadData(hosts);
|
||||||
Ext.each(hosts, function(host) {
|
Ext.each(hosts, function(host) {
|
||||||
var record = store.getById(host[0]);
|
|
||||||
if (!record) {
|
|
||||||
store.loadData([host], true);
|
|
||||||
}
|
|
||||||
Deluge.Client.web.get_host_status(host[0], {
|
Deluge.Client.web.get_host_status(host[0], {
|
||||||
success: this.onGetHostStatus,
|
success: this.onGetHostStatus,
|
||||||
scope: this
|
scope: this
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue