mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-23 01:36:06 -05:00
Do not select any item if pressing add without any active selection
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user