mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 20:28:11 -05:00
Fix unexpectedly returning true for hotkey condition
The condition would return true after unpause, if a configured hotkey was pressed during the time the macro was paused.
This commit is contained in:
@@ -14,7 +14,13 @@ static void hotkeyCB(void *data, obs_hotkey_id, obs_hotkey_t *, bool pressed)
|
||||
{
|
||||
if (pressed) {
|
||||
auto c = static_cast<MacroConditionHotkey *>(data);
|
||||
c->SetPressed();
|
||||
auto macro = c->GetMacro();
|
||||
if (!macro) {
|
||||
c->SetPressed();
|
||||
}
|
||||
if (macro && !macro->Paused()) {
|
||||
c->SetPressed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user