From 1f87427b2c83ca88f58b16ebd0a7f451ab12ef15 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 2 Oct 2015 08:21:46 +0200 Subject: [PATCH] Fix issue #13: "Position doesn't get reset after uninstall". --- src/extension.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/extension.js b/src/extension.js index 30f2d5a..379d7d8 100644 --- a/src/extension.js +++ b/src/extension.js @@ -72,8 +72,6 @@ let originalHideNotification; let notificationWidget; let panel; -let originalNotificationWidgetX; - /* * We need these constants to call Tween with values consistent to the * MessageTray @@ -564,8 +562,6 @@ function enable() { originalUpdateShowingNotification = Main.messageTray._updateShowingNotification; Main.messageTray._updateShowingNotification = extensionUpdateShowingNotification; - originalNotificationWidgetX = notificationWidget.x; - originalHideNotification = Main.messageTray._hideNotification; Main.messageTray._hideNotification = extensionHideNotification; @@ -589,7 +585,8 @@ function disable() { Mainloop.source_remove(showTestNotificationTimeout); // reset x-position - notificationWidget.x = originalNotificationWidgetX; + notificationWidget.x = 0; + Main.messageTray._showNotification = originalShowNotification; Main.messageTray._hideNotification = originalHideNotification; Main.messageTray._updateShowingNotification = originalUpdateShowingNotification;