Add undo / redo support for macros
Some checks failed
debian-build / build (push) Has been cancelled
Check locale / ubuntu64 (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled

This commit is contained in:
WarmUpTill
2026-08-12 11:48:53 +02:00
committed by WarmUpTill
parent afd9154c84
commit 7ea944e1a3
17 changed files with 1768 additions and 20 deletions

View File

@@ -7,6 +7,7 @@
#include "macro-helpers.hpp"
#include "macro-search.hpp"
#include "macro-settings.hpp"
#include "macro-undo-redo.hpp"
#include "macro.hpp"
#include "path-helpers.hpp"
#include "source-helpers.hpp"
@@ -1028,6 +1029,14 @@ void AdvSceneSwitcher::SetupGeneralTab()
ui->suppressCrashRecoveryDialog->setChecked(GetSuppressCrashDialog());
ui->hideLegacyTabs->setChecked(switcher->hideLegacyTabs);
ui->settingsLock->setChecked(switcher->settingsLockEnabled);
ui->disableUndoRedo->setChecked(!GetUndoRedoEnabled());
connect(ui->disableUndoRedo, &QCheckBox::stateChanged, this,
[this](int state) {
if (loading) {
return;
}
SetUndoRedoEnabled(!state);
});
populatePriorityFunctionList(ui->priorityList);
populateThreadPriorityList(ui->threadPriority);