diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-26 13:38:34 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-26 13:38:34 +0200 |
commit | 2b998bb8cc8e83efafb20ed2fbe1a245d4d5ec5f (patch) | |
tree | 392872160002aa12c95a9f9239300aa12e80b368 /application/pages/LegacyUpgradePage.h | |
parent | eac892965e152519a6d7278504e7d4118aa7c01f (diff) | |
download | MultiMC-2b998bb8cc8e83efafb20ed2fbe1a245d4d5ec5f.tar MultiMC-2b998bb8cc8e83efafb20ed2fbe1a245d4d5ec5f.tar.gz MultiMC-2b998bb8cc8e83efafb20ed2fbe1a245d4d5ec5f.tar.lz MultiMC-2b998bb8cc8e83efafb20ed2fbe1a245d4d5ec5f.tar.xz MultiMC-2b998bb8cc8e83efafb20ed2fbe1a245d4d5ec5f.zip |
NOISSUE implement LEgacy instance migration
Diffstat (limited to 'application/pages/LegacyUpgradePage.h')
-rw-r--r-- | application/pages/LegacyUpgradePage.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/application/pages/LegacyUpgradePage.h b/application/pages/LegacyUpgradePage.h index 4731bb82..5de958c4 100644 --- a/application/pages/LegacyUpgradePage.h +++ b/application/pages/LegacyUpgradePage.h @@ -20,6 +20,7 @@ #include "minecraft/legacy/LegacyInstance.h" #include "pages/BasePage.h" #include <MultiMC.h> +#include "tasks/Task.h" namespace Ui { @@ -31,7 +32,7 @@ class LegacyUpgradePage : public QWidget, public BasePage Q_OBJECT public: - explicit LegacyUpgradePage(LegacyInstance *inst, QWidget *parent = 0); + explicit LegacyUpgradePage(InstancePtr inst, QWidget *parent = 0); virtual ~LegacyUpgradePage(); virtual QString displayName() const override { @@ -50,11 +51,14 @@ public: return "Legacy-upgrade"; } virtual bool shouldDisplay() const override; -private -slots: + +private slots: void on_upgradeButton_clicked(); private: + void runModalTask(Task *task); + +private: Ui::LegacyUpgradePage *ui; - LegacyInstance *m_inst; + InstancePtr m_inst; }; |