diff options
author | Heinrich Wendel <h_wendel@cojobo.net> | 2005-05-29 23:07:58 +0000 |
---|---|---|
committer | Heinrich Wendel <h_wendel@cojobo.net> | 2005-05-29 23:07:58 +0000 |
commit | dca49a56e8dad3214412212b9a7ce8a8e057991d (patch) | |
tree | 18d1ff064c083d37f2b8dcb7ea5325f518b743b7 | |
parent | 05ad91360a545c166242e11c06325779488b4cb7 (diff) |
fix type bug
-rw-r--r-- | xdg/Menu.py | 6 | ||||
-rw-r--r-- | xdg/MenuEditor.py | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/xdg/Menu.py b/xdg/Menu.py index 6ac3aad..0508dfb 100644 --- a/xdg/Menu.py +++ b/xdg/Menu.py @@ -828,7 +828,7 @@ def __genmenuNotOnlyAllocated(menu): for rule in menu.Rules: entries = rule.do(tmp["cache"].getEntries(menu.AppDirs), rule.Type, 1) for entry in entries: - if entry.Add == True: + if entry.Add == True: entry.Parents.append(menu) entry.Add = False entry.Allocated = True @@ -1009,11 +1009,11 @@ class DesktopEntryCache: if entry.DesktopFileID not in ids: ids.append(entry.DesktopFileID) list.append(entry) - elif entry.Type != "User": + elif entry.Type == "System": # FIXME: This is only 99% correct, but still... i = list.index(entry) e = list[i] - if e.Type == "System": + if e.Type == "User": e.Type = "Both" e.Original = entry self.cache[key] = list diff --git a/xdg/MenuEditor.py b/xdg/MenuEditor.py index 217e9a8..d20cb51 100644 --- a/xdg/MenuEditor.py +++ b/xdg/MenuEditor.py @@ -93,7 +93,6 @@ class MenuEditor: self.__addEntry(newparent, entry, after, before) sort(self.menu) - print oldparent.Show return entry |