add an ok icon and use it for the connection restored status

This commit is contained in:
Damien Churchill 2010-05-03 20:32:02 +01:00
parent 556c8b831a
commit b13adbafbf
3 changed files with 8 additions and 1 deletions

View File

@ -379,6 +379,10 @@ dl.singleline dd {
background-image: url('../icons/home.png') !important; background-image: url('../icons/home.png') !important;
} }
.icon-ok {
background-image: url('../icons/ok.png') !important;
}
.icon-error { .icon-error {
background-image: url('../icons/error.png') !important; background-image: url('../icons/error.png') !important;
} }

BIN
deluge/ui/web/icons/ok.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

View File

@ -142,7 +142,10 @@ deluge.ui = {
icon: Ext.MessageBox.ERROR icon: Ext.MessageBox.ERROR
}); });
deluge.events.fire('disconnect'); deluge.events.fire('disconnect');
deluge.statusbar.setStatus('Lost connection to webserver'); deluge.statusbar.setStatus({
iconCls: 'icon-ok',
text: 'Lost connection to webserver'}
);
this.checking = setInterval(this.checkConnection, 2000); this.checking = setInterval(this.checkConnection, 2000);
} }
this.errorCount++; this.errorCount++;