mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 18:53:32 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user