From 070d1b3df8c15de5e95f2c670917a4da492200ac Mon Sep 17 00:00:00 2001 From: gm10 <13855078+gm10@users.noreply.github.com> Date: Thu, 7 Mar 2019 09:08:44 +0100 Subject: Fix creating new menus and items --- Mozo/MainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index 19e2894..4ca5b84 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -309,7 +309,7 @@ class MainWindow: parent = menus[iter][2] file_path = os.path.join(util.getUserDirectoryPath(), util.getUniqueFileId('mozo-made', '.directory')) process = subprocess.Popen(['mate-desktop-item-edit', file_path], env=os.environ) - GLib.timeout_add(100, self.waitForNewMenuProcess, process, parent.menu_id, file_path) + GLib.timeout_add(100, self.waitForNewMenuProcess, process, parent.get_menu_id(), file_path) def on_new_item_button_clicked(self, button): menu_tree = self.tree.get_object('menu_tree') @@ -322,7 +322,7 @@ class MainWindow: parent = menus[iter][2] file_path = os.path.join(util.getUserItemPath(), util.getUniqueFileId('mozo-made', '.desktop')) process = subprocess.Popen(['mate-desktop-item-edit', file_path], env=os.environ) - GLib.timeout_add(100, self.waitForNewItemProcess, process, parent.menu_id, file_path) + GLib.timeout_add(100, self.waitForNewItemProcess, process, parent.get_menu_id(), file_path) def on_new_separator_button_clicked(self, button): item_tree = self.tree.get_object('item_tree') -- cgit v1.2.1