1
Fork 0
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:
thankyouverycool 2022-07-04 21:36:30 -04:00 committed by Andreas Kling
parent ae333fad98
commit 510551bb4f
2 changed files with 11 additions and 3 deletions

View file

@ -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;