wip
This commit is contained in:
@@ -1128,6 +1128,8 @@ class Scheduler(BECWidget, QWidget):
|
||||
target = idx - 1 if idx is not None and idx > 0 else None
|
||||
if target is not None:
|
||||
self.move_item(item_id, target)
|
||||
self._refresh_ui()
|
||||
self._update_buttons()
|
||||
|
||||
def move_item_down(self, item_id: str):
|
||||
"""RPC-exposed: swap an item with the one directly after it."""
|
||||
@@ -1137,6 +1139,8 @@ class Scheduler(BECWidget, QWidget):
|
||||
target = idx + 1 if idx is not None and idx < n - 1 else None
|
||||
if target is not None:
|
||||
self.move_item(item_id, target)
|
||||
self._refresh_ui()
|
||||
self._update_buttons()
|
||||
|
||||
# ------------------------------------------------------------------ #
|
||||
# execution - runs in a background task (BECConnector.submit_task,
|
||||
|
||||
Reference in New Issue
Block a user