mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-07-02 00:22:10 -05:00
Do not select any item if pressing add without any active selection
This commit is contained in:
parent
352dac5e32
commit
354ef56070
|
|
@ -183,7 +183,9 @@ void AdvSceneSwitcher::on_actionAdd_clicked()
|
|||
} else {
|
||||
AddMacroAction(currentActionIdx + 1);
|
||||
}
|
||||
MacroActionSelectionChanged(currentActionIdx + 1);
|
||||
if (currentActionIdx != -1) {
|
||||
MacroActionSelectionChanged(currentActionIdx + 1);
|
||||
}
|
||||
actionsList->SetHelpMsgVisible(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -311,7 +311,9 @@ void AdvSceneSwitcher::on_conditionAdd_clicked()
|
|||
} else {
|
||||
AddMacroCondition(currentConditionIdx + 1);
|
||||
}
|
||||
MacroConditionSelectionChanged(currentConditionIdx + 1);
|
||||
if (currentConditionIdx != -1) {
|
||||
MacroConditionSelectionChanged(currentConditionIdx + 1);
|
||||
}
|
||||
conditionsList->SetHelpMsgVisible(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user