mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Make sure the name of the view is set correclty
even if there was a setting found
This commit is contained in:
@@ -48,13 +48,13 @@ TransitionView::TransitionView() : View(TRANSITION), transition_source_(nullptr)
|
||||
if ( Settings::application.views[mode_].name.empty() )
|
||||
{
|
||||
// no settings found: store application default
|
||||
Settings::application.views[mode_].name = "Transition";
|
||||
scene.root()->scale_ = glm::vec3(TRANSITION_DEFAULT_SCALE, TRANSITION_DEFAULT_SCALE, 1.0f);
|
||||
scene.root()->translation_ = glm::vec3(1.5f, 0.f, 0.0f);
|
||||
saveSettings();
|
||||
}
|
||||
else
|
||||
restoreSettings();
|
||||
Settings::application.views[mode_].name = "Transition";
|
||||
|
||||
// Geometry Scene background
|
||||
gradient_ = new Switch;
|
||||
|
||||
Reference in New Issue
Block a user