1
0
Fork 0
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:
niol 2024-05-28 03:12:43 +02:00 committed by GitHub
parent 6132706565
commit 63e74f4df8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;