mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-20 16:25:43 -05:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user