mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 20:44:50 +00:00
clear the details pane when there are no selected torrents in the grid
This commit is contained in:
parent
6adb10b62a
commit
c143891c93
@ -31,7 +31,10 @@ Deluge.Details = {
|
||||
|
||||
update: function(tab) {
|
||||
var torrent = Deluge.Torrents.getSelected();
|
||||
if (!torrent) return;
|
||||
if (!torrent) {
|
||||
this.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
tab = tab || this.Panel.getActiveTab();
|
||||
if (tab.update) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user