diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-07-13 20:05:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 20:05:16 -0700 |
commit | 520594e5296b09205e55bc018b1f759df5725e96 (patch) | |
tree | 07e334684062151c5fdf699e805d9326255a3dc3 /launcher/ui/pages/instance/InstanceSettingsPage.cpp | |
parent | 8d7dcdfc5b2a231a1304878e25929e6f4ff4e338 (diff) | |
parent | 94d4d12ee0a12572b2b661003f10cfbdda1b434a (diff) | |
download | PrismLauncher-520594e5296b09205e55bc018b1f759df5725e96.tar.gz PrismLauncher-520594e5296b09205e55bc018b1f759df5725e96.tar.bz2 PrismLauncher-520594e5296b09205e55bc018b1f759df5725e96.zip |
Merge branch 'develop' into chore/add-compiler-warnings
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/ui/pages/instance/InstanceSettingsPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/InstanceSettingsPage.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/launcher/ui/pages/instance/InstanceSettingsPage.cpp b/launcher/ui/pages/instance/InstanceSettingsPage.cpp index 311ebc86..0a7aea5e 100644 --- a/launcher/ui/pages/instance/InstanceSettingsPage.cpp +++ b/launcher/ui/pages/instance/InstanceSettingsPage.cpp @@ -60,17 +60,13 @@ InstanceSettingsPage::InstanceSettingsPage(BaseInstance *inst, QWidget *parent) m_settings = inst->settings(); ui->setupUi(this); - // As the signal will (probably) not be triggered once we click edit, let's update it manually instead. - updateRunningStatus(m_instance->isRunning()); - - connect(m_instance, &BaseInstance::runningStatusChanged, this, &InstanceSettingsPage::updateRunningStatus); connect(ui->openGlobalJavaSettingsButton, &QCommandLinkButton::clicked, this, &InstanceSettingsPage::globalSettingsButtonClicked); connect(APPLICATION, &Application::globalSettingsAboutToOpen, this, &InstanceSettingsPage::applySettings); connect(APPLICATION, &Application::globalSettingsClosed, this, &InstanceSettingsPage::loadSettings); - connect(ui->instanceAccountSelector, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &InstanceSettingsPage::changeInstanceAccount); + connect(ui->instanceAccountSelector, QOverload<int>::of(&QComboBox::currentIndexChanged), this, + &InstanceSettingsPage::changeInstanceAccount); loadSettings(); - updateThresholds(); } @@ -523,8 +519,3 @@ void InstanceSettingsPage::updateThresholds() ui->labelMaxMemIcon->setPixmap(pix); } } - -void InstanceSettingsPage::updateRunningStatus(bool running) -{ - setEnabled(!running); -} |