diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-16 23:09:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-17 19:24:39 +0200 |
commit | 9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b (patch) | |
tree | 962cbb167d58cc022ceb4d7bbc4e3b4e00a5849f /application/pages/LegacyUpgradePage.cpp | |
parent | b2b04876009400c04658d9b986b86d3edeb3b51a (diff) | |
download | PrismLauncher-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.gz PrismLauncher-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.bz2 PrismLauncher-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.zip |
NOISSUE Add back Legacy for migration purposes
Diffstat (limited to 'application/pages/LegacyUpgradePage.cpp')
-rw-r--r-- | application/pages/LegacyUpgradePage.cpp | 25 |
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(); +} |