macOS: Don't activate app in batch/terminal mode

This commit is contained in:
David Capello 2019-10-24 13:43:47 -03:00
parent ea5e67b0ea
commit f76585fbb8

View File

@ -371,7 +371,8 @@ void App::run()
#if defined(_DEBUG) || defined(ENABLE_DEVMODE)
// On OS X, when we compile Aseprite on devmode, we're using it
// outside an app bundle, so we must active the app explicitly.
os::instance()->activateApp();
if (isGui())
os::instance()->activateApp();
#endif
#ifdef ENABLE_UPDATER