Skip to content
Permalink
Browse files

Fix menu entry can not move

  • Loading branch information...
yetist authored and raveit65 committed Feb 20, 2019
1 parent ae538cd commit ae480e9fb7237e6c2d0608d4491ba4a6617c64f9
Showing with 2 additions and 2 deletions.
  1. +2 −2 Mozo/MainWindow.py
@@ -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):
@@ -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):

0 comments on commit ae480e9

Please sign in to comment.
You can’t perform that action at this time.