From 5a7c1f9edf3f0757ad7d1bbd9c613948079723ce Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Fri, 5 Feb 2021 03:18:21 +0100 Subject: NOISSUE force kill button to reevaluate its style on state change --- application/InstanceWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application') diff --git a/application/InstanceWindow.cpp b/application/InstanceWindow.cpp index 3acff1d3..5eeb6538 100644 --- a/application/InstanceWindow.cpp +++ b/application/InstanceWindow.cpp @@ -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() -- cgit