NOISSUE force kill button to reevaluate its style on state change

This commit is contained in:
Petr Mrázek 2021-02-05 03:18:21 +01:00
parent 359905a8ef
commit 5a7c1f9edf

View File

@ -141,6 +141,9 @@ void InstanceWindow::updateLaunchButtons()
m_killButton->setObjectName("launchButton");
m_killButton->setToolTip(tr("Launch the instance"));
}
// NOTE: this is a hack to force the button to recalculate its style
m_killButton->setStyleSheet("/* */");
m_killButton->setStyleSheet(QString());
}
void InstanceWindow::on_btnLaunchMinecraftOffline_clicked()