Inline single-use variable

This commit is contained in:
Emil Lundberg 2017-11-16 18:01:53 +01:00
parent 9814125fcf
commit 2001b17815
No known key found for this signature in database
GPG Key ID: 5B9688125FF0B636

View File

@ -95,8 +95,7 @@ int main(int argc, char *argv[])
// Set icon in the window, doesn't effect desktop icons.
qmlWindow->setIcon(QIcon(path_prefix + "/images/windowicon.png"));
// Show root window unless explicitly hidden in settings.
auto hideOnLaunch = qmlWindow->property("hideOnLaunch");
if (!hideOnLaunch.toBool()) {
if (qmlWindow->property("hideOnLaunch").toBool() == false) {
qmlWindow->show();
}