Skip to content

Commit ffe5e71

Browse files
gm10raveit65
authored and
raveit65
committed
Fix creating new menus and items
1 parent 30caedb commit ffe5e71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mozo/MainWindow.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def on_new_menu_button_clicked(self, button):
309309
parent = menus[iter][2]
310310
file_path = os.path.join(util.getUserDirectoryPath(), util.getUniqueFileId('mozo-made', '.directory'))
311311
process = subprocess.Popen(['mate-desktop-item-edit', file_path], env=os.environ)
312-
GLib.timeout_add(100, self.waitForNewMenuProcess, process, parent.menu_id, file_path)
312+
GLib.timeout_add(100, self.waitForNewMenuProcess, process, parent.get_menu_id(), file_path)
313313

314314
def on_new_item_button_clicked(self, button):
315315
menu_tree = self.tree.get_object('menu_tree')
@@ -322,7 +322,7 @@ def on_new_item_button_clicked(self, button):
322322
parent = menus[iter][2]
323323
file_path = os.path.join(util.getUserItemPath(), util.getUniqueFileId('mozo-made', '.desktop'))
324324
process = subprocess.Popen(['mate-desktop-item-edit', file_path], env=os.environ)
325-
GLib.timeout_add(100, self.waitForNewItemProcess, process, parent.menu_id, file_path)
325+
GLib.timeout_add(100, self.waitForNewItemProcess, process, parent.get_menu_id(), file_path)
326326

327327
def on_new_separator_button_clicked(self, button):
328328
item_tree = self.tree.get_object('item_tree')

0 commit comments

Comments
 (0)