Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix creating new menus and items
  • Loading branch information
gm10 authored and raveit65 committed Mar 11, 2019
1 parent 30caedb commit ffe5e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mozo/MainWindow.py
Expand Up @@ -309,7 +309,7 @@ def on_new_menu_button_clicked(self, button):
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')
Expand All @@ -322,7 +322,7 @@ def on_new_item_button_clicked(self, button):
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')
Expand Down

0 comments on commit ffe5e71

Please sign in to comment.