summaryrefslogtreecommitdiff
path: root/xdg
diff options
context:
space:
mode:
authorHeinrich Wendel <h_wendel@cojobo.net>2005-06-02 14:38:52 +0000
committerHeinrich Wendel <h_wendel@cojobo.net>2005-06-02 14:38:52 +0000
commit9393e8e042e064b7ce299b78925d78297aab53a9 (patch)
tree22d29d5bd43627306480230ab98245878cabcee8 /xdg
parentbe138ec50a41c6472fe78b21d14cef8b54fc99d8 (diff)
small feature
Diffstat (limited to 'xdg')
-rw-r--r--xdg/Menu.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/xdg/Menu.py b/xdg/Menu.py
index d1802ee..da4252a 100644
--- a/xdg/Menu.py
+++ b/xdg/Menu.py
@@ -947,10 +947,9 @@ def sort(menu):
# show_empty tag
for entry in menu.Entries:
if isinstance(entry,Menu) and entry.Layout.show_empty == "false" and entry.Visible == 0:
+ entry.Show = "Empty"
+ menu.Visible -= 1
if entry.NotInXml == True:
- entry.Show = "Empty"
- menu.Visible -= 1
- else:
menu.Entries.remove(entry)
# inline tags