mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2024-11-15 11:33:24 +01:00
Undo / Redo Notifications
This commit is contained in:
parent
3ab8e02fd4
commit
1cd33d214a
2
main.cpp
2
main.cpp
@ -183,6 +183,7 @@ int main(int argc, char** argv) {
|
||||
if (editorState and editorState->chart) {
|
||||
auto next = editorState->chart->history.get_next();
|
||||
if (next) {
|
||||
notificationsQueue.push(std::make_shared<RedoNotification>(**next));
|
||||
(*next)->doAction(*editorState);
|
||||
}
|
||||
}
|
||||
@ -193,6 +194,7 @@ int main(int argc, char** argv) {
|
||||
if (editorState and editorState->chart) {
|
||||
auto previous = editorState->chart->history.get_previous();
|
||||
if (previous) {
|
||||
notificationsQueue.push(std::make_shared<UndoNotification>(**previous));
|
||||
(*previous)->undoAction(*editorState);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user