ui: Fixed start screen not disappearing when opening project with double click on macOS
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user