mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
settings, configure_input: fix rename input profile
This commit is contained in:
parent
4f19d380f5
commit
1f708e8bad
2 changed files with 2 additions and 2 deletions
|
@ -505,6 +505,7 @@ void ConfigureInput::RenameProfile() {
|
|||
|
||||
ui->profile->setItemText(ui->profile->currentIndex(), new_name);
|
||||
Settings::RenameCurrentProfile(new_name.toStdString());
|
||||
Settings::SaveProfile(ui->profile->currentIndex());
|
||||
}
|
||||
|
||||
bool ConfigureInput::IsProfileNameDuplicate(const QString& name) const {
|
||||
|
|
|
@ -137,8 +137,7 @@ void DeleteProfile(int index) {
|
|||
}
|
||||
|
||||
void RenameCurrentProfile(std::string new_name) {
|
||||
Settings::values.input_profiles[Settings::values.current_input_profile_index].name =
|
||||
std::move(new_name);
|
||||
Settings::values.current_input_profile.name = std::move(new_name);
|
||||
}
|
||||
|
||||
} // namespace Settings
|
||||
|
|
Loading…
Reference in a new issue