aboutsummaryrefslogtreecommitdiff
path: root/installer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'installer/main.cpp')
-rw-r--r--installer/main.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/installer/main.cpp b/installer/main.cpp
index e1ebadf..a36d8a5 100644
--- a/installer/main.cpp
+++ b/installer/main.cpp
@@ -26,7 +26,15 @@ int main(int argc, char *argv[])
qsrand(QDateTime::currentMSecsSinceEpoch());
qDebug() << a.arguments();
- if (a.arguments().contains("--install")) {
+ if (a.arguments().contains("--update-from-app")) {
+ //Install UI mode (triggered from update action inside app)
+
+ MainWindow w;
+ w.setAutoProgress(true);
+ w.show();
+
+ return a.exec();
+ } else if (a.arguments().contains("--install")) {
//Installer mode
InstallWorker worker;
if (!worker.startWork()) return 1;
@@ -86,13 +94,13 @@ int main(int argc, char *argv[])
box.exec();
return 1;
}
- }
-
- //Install UI mode
- MainWindow w;
- w.show();
+ } else {
+ //Install UI mode
+ MainWindow w;
+ w.show();
- return a.exec();
+ return a.exec();
+ }
}
QString calculateSize(quint64 size) {