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
commit 510551bb4f
Notes: sideshowbarker 2024-07-17 09:39:50 +09:00
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;