[mousetrap/gnome3-wip] Fixed Bug 725703. Addon's could not be disabled once they were enabled for the first time. The toggl



commit 4857a1143a22862c01f2ce5869f2503954963b0e
Author: Logan Hotchkiss <lhotchkiss17 gmail com>
Date:   Wed Mar 5 22:26:06 2014 -0500

    Fixed Bug 725703. Addon's could not be disabled once they were enabled for the first time. The toggle 
function was checking for the addons in capitals, while the list was in lower case.

 src/mousetrap/app/ui/settings_gui.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mousetrap/app/ui/settings_gui.py b/src/mousetrap/app/ui/settings_gui.py
index 0b1aac6..8e9d672 100644
--- a/src/mousetrap/app/ui/settings_gui.py
+++ b/src/mousetrap/app/ui/settings_gui.py
@@ -517,7 +517,7 @@ class PreffGui( Gtk.Window ):
 
         cur = self.cfg.getList("main", "addon")
 
-        if model[path][1] in cur:
+        if model[path][1].lower() in cur:
             cur.remove(model[path][1].lower())
         else:
             cur.append(model[path][1].lower())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]