Make sure UI starts with something visible
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
0e85278bb1
commit
2a0d263666
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <app/common.hpp>
|
||||
#include <app/Scene.hpp>
|
||||
#include <context.hpp>
|
||||
#include <patch.hpp>
|
||||
#include <ui/common.hpp>
|
||||
#include <window/Window.hpp>
|
||||
|
||||
|
@ -78,6 +79,11 @@ public:
|
|||
rack::window::lastUI = this;
|
||||
fContext->window = new rack::window::Window;
|
||||
rack::window::lastUI = nullptr;
|
||||
|
||||
if (fContext->patch->hasAutosave())
|
||||
fContext->patch->loadAutosave();
|
||||
else
|
||||
fContext->patch->loadTemplate();
|
||||
}
|
||||
|
||||
~CardinalUI() override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue