# HG changeset patch # User Andre Heinecke # Date 1410357384 -7200 # Node ID 51b97ebc5b06a08257096c4d5e139bb293848344 # Parent febd195c0301ffbf69fc746b67b000a28f88d2bc (issue54) Launch depending on visibility either as tray or full after installation diff -r febd195c0301 -r 51b97ebc5b06 ui/mainwindow.cpp --- a/ui/mainwindow.cpp Wed Sep 10 15:54:51 2014 +0200 +++ b/ui/mainwindow.cpp Wed Sep 10 15:56:24 2014 +0200 @@ -335,6 +335,10 @@ QStringList parameters; installDir.cdUp(); parameters << "--prefix" << installDir.path(); + parameters << "--update"; + if (isVisible()) { + parameters << "--show-after-update"; + } bool sudo_started = false; bool use_sudo = is_admin() && is_system_install(); if (use_sudo) {