Add highlighting of onChagne if actions were prevented recently

This commit is contained in:
WarmUpTill
2022-03-06 22:30:29 +01:00
committed by WarmUpTill
parent 428e114a0a
commit d693dbc844
4 changed files with 41 additions and 0 deletions

View File

@@ -160,6 +160,7 @@ public slots:
void ResetOpacityConditionControls();
void HighlightControls();
void MacroDragDropReorder(QModelIndex, int, int, QModelIndex, int);
void HighlightOnChange();
void on_screenRegionSwitches_currentRowChanged(int idx);
void on_showFrame_clicked();

View File

@@ -110,6 +110,7 @@ public:
// UI helpers for the macro tab
bool WasExecutedRecently();
bool OnChangePreventedActionsRecently();
void ResetUIHelpers();
private:
@@ -119,6 +120,7 @@ private:
void ResetTimers();
void RunActions(bool &ret, bool ignorePause);
void RunActions(bool ignorePause);
void SetOnChangeHighlight();
std::string _name = "";
std::deque<std::shared_ptr<MacroCondition>> _conditions;
@@ -133,7 +135,9 @@ private:
obs_hotkey_id _unpauseHotkey = OBS_INVALID_HOTKEY_ID;
obs_hotkey_id _togglePauseHotkey = OBS_INVALID_HOTKEY_ID;
// UI helpers for the macro tab
bool _wasExecutedRecently = false;
bool _onChangeTriggered = false;
bool _die = false;
bool _stop = false;