summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.h
diff options
context:
space:
mode:
authorOverMighty <its.overmighty@gmail.com>2020-02-05 00:29:23 +0100
committerOverMighty <its.overmighty@gmail.com>2020-02-05 12:37:09 +0100
commitbc04d89c32142094eec161709cf3932b7213b058 (patch)
treeeed989535c2f4181f0d836805fd6f8464bb4cd3f /application/MultiMC.h
parentbc98181ec274dfc933c5c0207943f9de1dbaf1d1 (diff)
downloadMultiMC-bc04d89c32142094eec161709cf3932b7213b058.tar
MultiMC-bc04d89c32142094eec161709cf3932b7213b058.tar.gz
MultiMC-bc04d89c32142094eec161709cf3932b7213b058.tar.lz
MultiMC-bc04d89c32142094eec161709cf3932b7213b058.tar.xz
MultiMC-bc04d89c32142094eec161709cf3932b7213b058.zip
feat: add --import command-line option
When specified, opens the "Import from zip" dialog as soon as the main window is shown, with the URL field prefilled with the argument given to the option. Closes #2998
Diffstat (limited to 'application/MultiMC.h')
-rw-r--r--application/MultiMC.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/MultiMC.h b/application/MultiMC.h
index d7c727e0..e6588a14 100644
--- a/application/MultiMC.h
+++ b/application/MultiMC.h
@@ -6,6 +6,7 @@
#include <QFlag>
#include <QIcon>
#include <QDateTime>
+#include <QUrl>
#include <updater/GoUpdate.h>
#include <BaseInstance.h>
@@ -221,5 +222,6 @@ private:
public:
QString m_instanceIdToLaunch;
bool m_liveCheck = false;
+ QUrl m_zipToImport;
std::unique_ptr<QFile> logFile;
};