Godot-Project-Builds icon indicating copy to clipboard operation
Godot-Project-Builds copied to clipboard

Task and routine sorting buttons do not update

Open svetogam opened this issue 1 year ago • 0 comments

The "Move Up" and "Move Down" buttons for tasks and "Move Left" and "Move Right" buttons for routines often do not update their disabled/enabled status immediately. This opens up the "advanced speed tech" of making a task or routine wrap around from the top to the bottom, which is too fun and so should be removed.

Cases:

  • Routine Builder screen:

    • Add Task does not update the Move Down button on the previously last task.
    • Paste Task does not update the Move Down button on the previously last task.
    • Delete Task does not update the buttons on tasks around it.
    • Pressing the Move Up or Move Down on one task does not update the buttons on the task it switches places with.
  • Routine tab of Main screen:

    • Adding a routine does not update the Move Right button on the previously last routine.
    • Duplicating a routine does not update the Move Right button on the previously last routine.
    • Deleting a routine does not update the buttons on the routines around it.

The solution that comes to my mind is to emit task_list_changed and routine_list_changed signals, and then connect these to updating the buttons. That way you don't have to think about when exactly which buttons should be updated.

svetogam avatar Sep 24 '24 22:09 svetogam