mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-02 06:36:06 -05:00
Enable getting variable values from process condition
This commit is contained in:
@@ -22,6 +22,12 @@ bool MacroConditionProcess::CheckCondition()
|
||||
bool matches = runningProcesses.indexOf(QRegularExpression(proc)) != -1;
|
||||
bool focus = !_focus || isInFocus(proc);
|
||||
|
||||
if (IsReferencedInVars()) {
|
||||
std::string name;
|
||||
GetForegroundProcessName(name);
|
||||
SetVariableValue(name);
|
||||
}
|
||||
|
||||
return (equals || matches) && focus;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user