mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-10-10 18:51:00 -05:00
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
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user