mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibGUI: Add fallible try_push() variant to UndoStack
This commit is contained in:
parent
ae333fad98
commit
510551bb4f
2 changed files with 11 additions and 3 deletions
|
@ -20,6 +20,7 @@ public:
|
|||
~UndoStack() = default;
|
||||
|
||||
void push(NonnullOwnPtr<Command>);
|
||||
ErrorOr<void> try_push(NonnullOwnPtr<Command>);
|
||||
|
||||
bool can_undo() const;
|
||||
bool can_redo() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue