Commit 7f0060f0 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

apply theme in initialize instead of exec

parent dd6fd09a
......@@ -125,6 +125,11 @@ void dtkApplicationPrivate::initialize(void)
dtkLogger::instance().attachFile(dtkLogPath(this->app), max_size);
}
if (this->parser->isSet("theme"))
dtkThemesEngine::instance()->apply(this->parser->value("theme"));
else
dtkThemesEngine::instance()->apply();
}
// ///////////////////////////////////////////////////////////////////
......@@ -190,11 +195,6 @@ int dtkApplication::exec(void)
{
dtkApplication *application = static_cast<dtkApplication *>(qApp);
if (application->parser()->isSet("theme"))
dtkThemesEngine::instance()->apply(application->parser()->value("theme"));
else
dtkThemesEngine::instance()->apply();
application->window()->show();
application->window()->raise();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment