mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 07:49:05 +00:00
LibGUI: Add fallible try_push() variant to UndoStack
This commit is contained in:
parent
ae333fad98
commit
510551bb4f
Notes:
sideshowbarker
2024-07-17 09:39:50 +09:00
Author: https://github.com/thankyouverycool
Commit: 510551bb4f
Pull-request: https://github.com/SerenityOS/serenity/pull/14490
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