Fix issue #13: "Position doesn't get reset after uninstall".

master
Jens Lody 9 years ago
parent 5b561d7cfe
commit 1f87427b2c
  1. 7
      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;

Loading…
Cancel
Save