summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbkma <[email protected]>2021-08-26 21:52:17 +0200
committerraveit65 <[email protected]>2021-09-02 18:46:32 +0200
commit558d88aa8346a5534b24c5c9362d63e8e473d769 (patch)
treec12f11b71d20dcaab35ecdb6350f6729e7f63595
parentd602c738e59ca59f6ac75b90e9fffe2e0ab63174 (diff)
downloadmozo-558d88aa8346a5534b24c5c9362d63e8e473d769.tar.bz2
mozo-558d88aa8346a5534b24c5c9362d63e8e473d769.tar.xz
fix adding and removing seperator item
-rw-r--r--Mozo/MainWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py
index 79ac373..31b2135 100644
--- a/Mozo/MainWindow.py
+++ b/Mozo/MainWindow.py
@@ -100,7 +100,7 @@ class MainWindow:
update_items = False
update_type = None
item_id = None
- if iter and items[iter][3].get_desktop_file_path():
+ if iter and (isinstance(items[iter][3], MateMenu.TreeSeparator) or items[iter][3].get_desktop_file_path()):
update_items = True
if isinstance(items[iter][3], MateMenu.TreeDirectory):
item_id = os.path.split(items[iter][3].get_desktop_file_path())[1]