Skip to content

frontend: Edit > Undo stays disabled on an empty undo stack (#2222) - #2241

Merged
zackees merged 3 commits into
masterfrom
fix/undo-empty-enable
Oct 24, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/undo-empty-enable

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #2222.

  • RED: the new test_undo_stack_enable builds the real undo_stack against stand-ins for the OBSBasic.ui header and the precompiled header (undo-stack-stubs/) and runs on Qt's offscreen platform. Local Tier 2 on the RED commit failed at :43 (disable/enable on an empty stack) and :70 (a disabled span after the last entry was undone). The same run also failed test_ws_remove_input, which this change doesn't touch.
  • GREEN: enable_internal() enables Undo only when undo_items is non-empty, as it already did for Redo. When the stack has entries, Undo and Redo come back the same as before (asserted).
  • The ledger line goes under Fixed upstream bugs → Scenes and UI.
  • This is a prerequisite for the Undo toolbar button proposed in design: research undo/redo coverage and a visible Undo affordance (HN feedback: "lack of an undo button") #2214.

@zackees
zackees enabled auto-merge October 24, 2026 21:22
On the Windows Tier 2 runner the offscreen platform is not deployed and
the test hung to its 120 s timeout, as test_properties_undo_coalesce would.
@zackees
zackees force-pushed the fix/undo-empty-enable branch from 6c4e783 to 4a7277b Compare October 24, 2026 22:58
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit fc6bb33 Oct 24, 2026
37 checks passed
@zackees
zackees deleted the fix/undo-empty-enable branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

frontend: undo_stack::enable_internal() enables Undo on an empty stack

1 participant