summaryrefslogtreecommitdiffstats
path: root/application/pages/LegacyUpgradePage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-16 23:09:05 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-17 19:24:39 +0200
commit9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b (patch)
tree962cbb167d58cc022ceb4d7bbc4e3b4e00a5849f /application/pages/LegacyUpgradePage.cpp
parentb2b04876009400c04658d9b986b86d3edeb3b51a (diff)
downloadMultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.gz
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.lz
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.xz
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.zip
NOISSUE Add back Legacy for migration purposes
Diffstat (limited to 'application/pages/LegacyUpgradePage.cpp')
-rw-r--r--application/pages/LegacyUpgradePage.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/application/pages/LegacyUpgradePage.cpp b/application/pages/LegacyUpgradePage.cpp
new file mode 100644
index 00000000..14cb916d
--- /dev/null
+++ b/application/pages/LegacyUpgradePage.cpp
@@ -0,0 +1,25 @@
+#include "LegacyUpgradePage.h"
+#include "ui_LegacyUpgradePage.h"
+
+#include "minecraft/legacy/LegacyInstance.h"
+
+LegacyUpgradePage::LegacyUpgradePage(LegacyInstance *inst, QWidget *parent)
+ : QWidget(parent), ui(new Ui::LegacyUpgradePage), m_inst(inst)
+{
+ ui->setupUi(this);
+}
+
+LegacyUpgradePage::~LegacyUpgradePage()
+{
+ delete ui;
+}
+
+void LegacyUpgradePage::on_upgradeButton_clicked()
+{
+ // now what?
+}
+
+bool LegacyUpgradePage::shouldDisplay() const
+{
+ return !m_inst->isRunning();
+}