summaryrefslogtreecommitdiffstats
path: root/application/pages/LegacyUpgradePage.cpp
diff options
context:
space:
mode:
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..49998c50
--- /dev/null
+++ b/application/pages/LegacyUpgradePage.cpp
@@ -0,0 +1,25 @@
+#include "LegacyUpgradePage.h"
+#include "ui_LegacyUpgradePage.h"
+
+#include "minecraft/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();
+}