fix: enable demo launch only on supported instances
e.g. >= 1.3.1 instances Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
@ -166,7 +166,13 @@ void InstanceWindow::updateLaunchButtons()
|
||||
else
|
||||
{
|
||||
m_launchOfflineButton->setEnabled(true);
|
||||
m_launchDemoButton->setEnabled(true);
|
||||
|
||||
// Disable demo-mode if not available.
|
||||
auto instance = dynamic_cast<MinecraftInstance*>(m_instance.get());
|
||||
if (instance) {
|
||||
m_launchDemoButton->setEnabled(instance->supportsDemo());
|
||||
}
|
||||
|
||||
m_killButton->setText(tr("Launch"));
|
||||
m_killButton->setObjectName("launchButton");
|
||||
m_killButton->setToolTip(tr("Launch the instance"));
|
||||
|
Reference in New Issue
Block a user