mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
[win] Fix opening files from File Explorer in the running instance through DDE messages
This commit is contained in:
parent
58e78ad886
commit
7482024827
2
laf
2
laf
@ -1 +1 @@
|
||||
Subproject commit ab5d043a54aa6ccb52b7f9abbec312172f324012
|
||||
Subproject commit 55a3acb0bf6f30a50023dbdf04c2813423064702
|
@ -217,6 +217,8 @@ App::App(AppMod* mod)
|
||||
|
||||
int App::initialize(const AppOptions& options)
|
||||
{
|
||||
os::System* system = os::instance();
|
||||
|
||||
#ifdef ENABLE_UI
|
||||
m_isGui = options.startUI() && !options.previewCLI();
|
||||
#else
|
||||
@ -228,12 +230,13 @@ int App::initialize(const AppOptions& options)
|
||||
#ifdef _WIN32
|
||||
if (options.disableWintab() ||
|
||||
!preferences().experimental.loadWintabDriver()) {
|
||||
os::instance()->useWintabAPI(false);
|
||||
system->useWintabAPI(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
os::instance()->setAppMode(m_isGui ? os::AppMode::GUI:
|
||||
os::AppMode::CLI);
|
||||
system->setAppName(get_app_name());
|
||||
system->setAppMode(m_isGui ? os::AppMode::GUI:
|
||||
os::AppMode::CLI);
|
||||
|
||||
if (m_isGui)
|
||||
m_uiSystem.reset(new ui::UISystem);
|
||||
@ -330,7 +333,7 @@ int App::initialize(const AppOptions& options)
|
||||
return code;
|
||||
}
|
||||
|
||||
os::instance()->finishLaunching();
|
||||
system->finishLaunching();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user