[Pkg-mozext-commits] [greasemonkey] 10/55: Update the AOM UI based on the kind of uninstall happening.

David Prévot taffit at moszumanska.debian.org
Thu Oct 29 15:38:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 780682da26ed85730e3d12195872d107a3320196
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Wed Sep 16 16:36:43 2015 -0400

    Update the AOM UI based on the kind of uninstall happening.
    
    Refs #2274
---
 content/addons4-overlay.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/content/addons4-overlay.js b/content/addons4-overlay.js
index dae1c7f..a4dd140 100644
--- a/content/addons4-overlay.js
+++ b/content/addons4-overlay.js
@@ -70,7 +70,12 @@ var observer = {
     var addon = ScriptAddonFactoryByScript(script);
     switch (event) {
       case 'uninstall':
-        gListView.removeItem(addon);
+        if (!data) {
+          // In this observer context, `data` is a boolean, true means the
+          // uninstall happened "for update".  If it was _not_ for update,
+          // remove this item from the UI.
+          gListView.removeItem(addon);
+        }
         setEmptyWarningVisible();
         break;
       case 'install':

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list