aboutsummaryrefslogtreecommitdiff
path: root/application/InstanceWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-02-05 03:18:21 +0100
committerPetr Mrázek <peterix@gmail.com>2021-02-05 03:18:21 +0100
commit5a7c1f9edf3f0757ad7d1bbd9c613948079723ce (patch)
tree001e2a66f2b328307f9210ee0f5e8a81e22f619c /application/InstanceWindow.cpp
parent359905a8ef6fbaeda36a5780883dc753fe060401 (diff)
downloadPrismLauncher-5a7c1f9edf3f0757ad7d1bbd9c613948079723ce.tar.gz
PrismLauncher-5a7c1f9edf3f0757ad7d1bbd9c613948079723ce.tar.bz2
PrismLauncher-5a7c1f9edf3f0757ad7d1bbd9c613948079723ce.zip
NOISSUE force kill button to reevaluate its style on state change
Diffstat (limited to 'application/InstanceWindow.cpp')
-rw-r--r--application/InstanceWindow.cpp3
1 files changed, 3 insertions, 0 deletions
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()