Merge pull request 'fix(updater): Add General Tab Re-enable Checkbox For Updates If Previously Disabled For Start-up' (#20) from fix/re-enable-updater into main

Reviewed-on: https://git.citron-emu.org/Citron/Emulator/pulls/20
This commit is contained in:
Collecting
2025-11-03 00:55:32 +00:00
2 changed files with 12 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ ConfigureGeneral::ConfigureGeneral(const Core::System& system_,
if (!Settings::IsConfiguringGlobal()) {
ui->button_reset_defaults->setVisible(false);
}
ui->check_for_updates_checkbox->setChecked(UISettings::values.check_for_updates_on_start.GetValue());
}
ConfigureGeneral::~ConfigureGeneral() = default;
@@ -133,6 +135,9 @@ void ConfigureGeneral::ResetDefaults() {
}
void ConfigureGeneral::ApplyConfiguration() {
UISettings::values.check_for_updates_on_start.SetValue(ui->check_for_updates_checkbox->isChecked());
bool powered_on = system.IsPoweredOn();
for (const auto& func : apply_funcs) {
func(powered_on);

View File

@@ -40,6 +40,13 @@
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="check_for_updates_checkbox">
<property name="text">
<string>Check for updates on startup</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>