Skip to content

Commit

Permalink
Fix menu entry can not move
Browse files Browse the repository at this point in the history
  • Loading branch information
yetist authored and raveit65 committed Feb 23, 2019
1 parent ae538cd commit ae480e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mozo/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def on_move_up_button_clicked(self, button):
item = items[path][3]
before = items[(path.get_indices()[0] - 1,)][3]
if isinstance(item, MateMenu.TreeEntry):
self.editor.moveItem(item, item.get_parent(), before=before)
self.editor.moveItem(item.get_parent(), item, before=before)
elif isinstance(item, MateMenu.TreeDirectory):
self.editor.moveMenu(item, item.get_parent(), before=before)
elif isinstance(item, MateMenu.TreeSeparator):
Expand All @@ -611,7 +611,7 @@ def on_move_down_button_clicked(self, button):
item = items[path][3]
after = items[path][3]
if isinstance(item, MateMenu.TreeEntry):
self.editor.moveItem(item, item.get_parent(), after=after)
self.editor.moveItem(item.get_parent(), item, after=after)
elif isinstance(item, MateMenu.TreeDirectory):
self.editor.moveMenu(item, item.get_parent(), after=after)
elif isinstance(item, MateMenu.TreeSeparator):
Expand Down

0 comments on commit ae480e9

Please sign in to comment.