mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +00:00
webui: enable click to hide inspector (#6863)
This commit is contained in:
parent
6132706565
commit
63e74f4df8
1 changed files with 3 additions and 1 deletions
|
@ -125,7 +125,9 @@ export class Transmission extends EventTarget {
|
|||
this.setCurrentPopup(new AboutDialog(this.version_info));
|
||||
break;
|
||||
case 'show-inspector':
|
||||
if (!this.popup || this.popup.name !== 'inspector') {
|
||||
if (this.popup instanceof Inspector) {
|
||||
this.setCurrentPopup(null);
|
||||
} else {
|
||||
this.setCurrentPopup(new Inspector(this));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue