Skip to content
Snippets Groups Projects
Commit 897fd7a8 authored by moon2's avatar moon2 :speech_balloon:
Browse files

menu: fix delete target

This is due to a subtle change in behavior of our duck
_scroll_controller, but it's a good one so we'll keep it.
parent 05ef2fdc
No related branches found
No related tags found
1 merge request!735various bugfixes
Pipeline #13254 passed
......@@ -251,10 +251,10 @@ class ApplicationMenu(RestoreMenu):
self.tags = []
def _pop_target_item(self):
self._scroll_controller.set_item_count(len(self._items) - 1)
pos = self._scroll_controller.target_position()
self._items.pop(pos)
self._scroll_controller.set_position(pos - 1)
self._scroll_controller.set_item_count(len(self._items))
def _sort(self):
def sort_key(item):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment