ui: Fixed start screen not disappearing when opening project with double click on macOS

This commit is contained in:
Eberhard Graether
2018-07-13 14:36:13 +02:00
parent 7884f82432
commit 37aa46d77b
5 changed files with 21 additions and 15 deletions
+6
View File
@@ -227,6 +227,12 @@ void Application::handleMessage(MessageLoadProject* message)
TRACE("app load project");
FilePath projectSettingsFilePath(message->projectSettingsFilePath);
if (m_hasGUI)
{
bool showStartWindow = projectSettingsFilePath.empty();
m_mainView->loadWindow(showStartWindow);
}
if (projectSettingsFilePath.empty())
{
return;
+2
View File
@@ -23,6 +23,8 @@ public:
virtual void refreshView() = 0;
virtual void loadWindow(bool showStartWindow) = 0;
virtual void hideStartScreen() = 0;
virtual void setTitle(const std::wstring& title) = 0;
virtual void activateWindow() = 0;
@@ -1,6 +1,7 @@
#ifndef MESSAGE_PROJECT_NEW_H
#define MESSAGE_PROJECT_NEW_H
#include "utility/file/FilePath.h"
#include "utility/messaging/Message.h"
class MessageProjectNew