mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-22 17:29:19 +00:00
improve the connection manager
This commit is contained in:
parent
3e8c17b071
commit
6b8ff92fe2
@ -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…
x
Reference in New Issue
Block a user