mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-08 11:31:32 -04:00
Reset path when unchecked (still keeps it in UI in case you recheck)
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
9c942c6894
commit
ccef855f06
@ -101,8 +101,11 @@ MinecraftSettingsWidget::MinecraftSettingsWidget(MinecraftInstancePtr instance,
|
||||
connect(m_ui->serverJoinAddressButton, &QAbstractButton::toggled, m_ui->serverJoinAddress, &QWidget::setEnabled);
|
||||
connect(m_ui->worldJoinButton, &QAbstractButton::toggled, m_ui->worldsCb, &QWidget::setEnabled);
|
||||
|
||||
connect(m_ui->globalDataPacksGroupBox, &QGroupBox::toggled, this,
|
||||
[this](bool value) { m_instance->settings()->set("GlobalDataPacksEnabled", value); });
|
||||
connect(m_ui->globalDataPacksGroupBox, &QGroupBox::toggled, this, [this](bool value) {
|
||||
m_instance->settings()->set("GlobalDataPacksEnabled", value);
|
||||
if (!value)
|
||||
m_instance->settings()->reset("GlobalDataPacksPath");
|
||||
});
|
||||
connect(m_ui->dataPacksPathEdit, &QLineEdit::editingFinished, this,
|
||||
[this] { m_instance->settings()->set("GlobalDataPacksPath", m_ui->dataPacksPathEdit->text()); });
|
||||
connect(m_ui->dataPacksPathBrowse, &QPushButton::clicked, this, &MinecraftSettingsWidget::selectDataPacksFolder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user