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
1 changed files with 3 additions and 1 deletions

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;