From 63e74f4df8b14a874ace1603b4f2983cdbf236b3 Mon Sep 17 00:00:00 2001 From: niol Date: Tue, 28 May 2024 03:12:43 +0200 Subject: [PATCH] webui: enable click to hide inspector (#6863) --- web/src/transmission.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/transmission.js b/web/src/transmission.js index 7b10f8d93..549f2702b 100644 --- a/web/src/transmission.js +++ b/web/src/transmission.js @@ -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;