mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix UI not showing correct logic type if removing root condition
This commit is contained in:
parent
75cdd3c80d
commit
4c20ac605d
|
|
@ -447,6 +447,9 @@ void AdvSceneSwitcher::RemoveMacroCondition(int idx)
|
|||
if (idx == 0 && macro->Conditions().size() > 0) {
|
||||
auto newRoot = macro->Conditions().at(0);
|
||||
newRoot->SetLogicType(LogicType::ROOT_NONE);
|
||||
static_cast<MacroConditionEdit *>(
|
||||
conditionsList->WidgetAt(0))
|
||||
->SetRootNode(true);
|
||||
}
|
||||
SetConditionData(*macro);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user