From ed80ae1658e671eb8e7c1af2b5e48294b2e21aa7 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Sun, 4 Jun 2023 13:30:28 -0600 Subject: [PATCH] Fix #14 --- batime@martin.zurowietz.de/extension.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batime@martin.zurowietz.de/extension.js b/batime@martin.zurowietz.de/extension.js index 65f5b75..aaf78c4 100644 --- a/batime@martin.zurowietz.de/extension.js +++ b/batime@martin.zurowietz.de/extension.js @@ -6,14 +6,14 @@ class BaTimeExtension { constructor() { this.aggregateMenu = Panel.statusArea.quickSettings; this.originalIndicator = this.aggregateMenu._system; - this.aggregateMenu._system = this.customIndicator = new BaTime.imports.power.Indicator(); + this.aggregateMenu._batteryTime = this.customIndicator = new BaTime.imports.power.Indicator(); this.aggregateMenu._indicators.replace_child( this.originalIndicator, this.customIndicator ); } destroy() { - this.aggregateMenu._system = this.originalIndicator; + delete this.aggregateMenu._batteryTime; this.aggregateMenu._indicators.replace_child( this.customIndicator, this.originalIndicator