mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
Renamed CheckIfOperationChanged to OnDockedModeChanged
This commit is contained in:
parent
fd1ef25257
commit
40db288a2a
2 changed files with 20 additions and 18 deletions
|
@ -41,8 +41,11 @@ void ConfigureGeneral::PopulateHotkeyList(const HotkeyRegistry& registry) {
|
||||||
ui->widget->Populate(registry);
|
ui->widget->Populate(registry);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureGeneral::CheckIfOperationChanged(bool last_state, bool new_state) {
|
void ConfigureGeneral::OnDockedModeChanged(bool last_state, bool new_state) {
|
||||||
if (last_state != new_state) {
|
if (last_state == new_state) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Core::System& system{Core::System::GetInstance()};
|
Core::System& system{Core::System::GetInstance()};
|
||||||
Service::SM::ServiceManager& sm = system.ServiceManager();
|
Service::SM::ServiceManager& sm = system.ServiceManager();
|
||||||
|
|
||||||
|
@ -61,7 +64,6 @@ void ConfigureGeneral::CheckIfOperationChanged(bool last_state, bool new_state)
|
||||||
applet_ae->GetMessageQueue()->OperationModeChanged();
|
applet_ae->GetMessageQueue()->OperationModeChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void ConfigureGeneral::applyConfiguration() {
|
void ConfigureGeneral::applyConfiguration() {
|
||||||
UISettings::values.gamedir_deepscan = ui->toggle_deepscan->isChecked();
|
UISettings::values.gamedir_deepscan = ui->toggle_deepscan->isChecked();
|
||||||
|
@ -72,7 +74,7 @@ void ConfigureGeneral::applyConfiguration() {
|
||||||
Settings::values.use_cpu_jit = ui->use_cpu_jit->isChecked();
|
Settings::values.use_cpu_jit = ui->use_cpu_jit->isChecked();
|
||||||
const bool pre_docked_mode = Settings::values.use_docked_mode;
|
const bool pre_docked_mode = Settings::values.use_docked_mode;
|
||||||
Settings::values.use_docked_mode = ui->use_docked_mode->isChecked();
|
Settings::values.use_docked_mode = ui->use_docked_mode->isChecked();
|
||||||
CheckIfOperationChanged(pre_docked_mode, Settings::values.use_docked_mode);
|
OnDockedModeChanged(pre_docked_mode, Settings::values.use_docked_mode);
|
||||||
|
|
||||||
Settings::values.enable_nfc = ui->enable_nfc->isChecked();
|
Settings::values.enable_nfc = ui->enable_nfc->isChecked();
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setConfiguration();
|
void setConfiguration();
|
||||||
void CheckIfOperationChanged(bool last_state, bool new_state);
|
void OnDockedModeChanged(bool last_state, bool new_state);
|
||||||
|
|
||||||
std::unique_ptr<Ui::ConfigureGeneral> ui;
|
std::unique_ptr<Ui::ConfigureGeneral> ui;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue