summaryrefslogtreecommitdiffstats
path: root/application/pages/LegacyUpgradePage.cpp
blob: 14cb916d3ba3f3022a1b037ce0f344e4e36893da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
}