Hide waitForTransition option if waiting for transition

The additions to the transition condition to check for target and source
scene of a ongoing transition fullfill the same role and this option
does not really fit the current scene check anyways.
This commit is contained in:
WarmUpTill
2021-11-24 20:56:18 +01:00
committed by WarmUpTill
parent 2d9e6bcaa2
commit 02918785ba
2 changed files with 10 additions and 2 deletions

View File

@@ -25,7 +25,10 @@ public:
return std::make_shared<MacroConditionScene>();
}
bool _waitForTransition = false;
// This option is to be removed in a future version and be replaced by
// transition specific conditions
bool _waitForTransition = true;
SceneSelection _scene;
SceneType _type;

View File

@@ -158,7 +158,12 @@ void MacroConditionSceneEdit::SetWidgetVisibility()
{
_scenes->setVisible(_entryData->_type == SceneType::CURRENT ||
_entryData->_type == SceneType::PREVIOUS);
_waitForTransition->setVisible(_entryData->_type == SceneType::CURRENT);
// The waitForTransition option shall be slowly faded out over time and
// be replaced by the transition source and target scene checks
_waitForTransition->setVisible(_entryData->_type ==
SceneType::CURRENT &&
!_entryData->_waitForTransition);
}
void MacroConditionSceneEdit::UpdateEntryData()