You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
frontend: undo_stack::enable_internal() enables Undo on an empty stack #2222
Found in the #2214 research (docs/undo-redo-research-2214.md, PR #2221).
frontend/utility/undo_stack.cpp.hpp:113-120: enable_internal() always calls actionMainUndo->setDisabled(false). Redo, by contrast, is enabled only when redo_items.size() > 0. So after any disable()/enable() span, Undo is enabled with nothing to undo. It shows today as a live Edit → Undo item that does nothing, and a visible toolbar button (#2214) would advertise this.
Plan
RED: a frontend test that creates the stack with the UI actions, runs disable() then enable() on an empty stack, and asserts that actionMainUndo stays disabled.
GREEN: in enable_internal(), guard Undo on undo_items.size() > 0, as Redo already is.
This is a prerequisite for the Undo/Redo toolbar button.
Activity
zackees commentedon Oct 24, 2026
Claiming: #2222, using the plan above.
test: Edit > Undo stays disabled on an empty undo stack (#2222)
frontend: enable Undo after a disabled span only when there is someth…
test: build test_undo_stack_enable on Linux only (#2222)
frontend: Edit > Undo stays disabled on an empty undo stack (obs-rust…
libobs: Move the window setting's string codec
test: Characterize the window string codec
libobs: Move the window setting's string codec
test: Characterize the window string codec
obs-util: Port the window setting's string codec (obs-rust#3386)