summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.h
diff options
context:
space:
mode:
authorOverMighty <its.overmighty@gmail.com>2020-02-05 00:29:23 +0100
committerPetr Mrázek <peterix@gmail.com>2020-02-24 18:52:26 +0100
commit47fa7b3f8c7a92fa14aa50d6bd7d7a3c100a06f3 (patch)
tree297c4adaf4f596a54218cf68f0ff43957ae0d628 /application/MultiMC.h
parentd58481e0de15ec4f1eb60de9a42c6cc9ec330d86 (diff)
downloadMultiMC-47fa7b3f8c7a92fa14aa50d6bd7d7a3c100a06f3.tar
MultiMC-47fa7b3f8c7a92fa14aa50d6bd7d7a3c100a06f3.tar.gz
MultiMC-47fa7b3f8c7a92fa14aa50d6bd7d7a3c100a06f3.tar.lz
MultiMC-47fa7b3f8c7a92fa14aa50d6bd7d7a3c100a06f3.tar.xz
MultiMC-47fa7b3f8c7a92fa14aa50d6bd7d7a3c100a06f3.zip
GH-2988 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;
};