Skip to content

Commit

Permalink
Clear saved config when changing profile
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSB committed Mar 3, 2023
1 parent 3d5921e commit 2b67fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osd.c
Expand Up @@ -5347,10 +5347,12 @@ int osd_key(int key) {
current_item[depth] = 0;
for (int i=0; i<= features[F_PROFILE].max; i++) {
if (strcmp(profile_names[i], item_name(item)) == 0) {
set_parameter(F_SAVED_CONFIG, 0);
set_parameter(F_PROFILE, i);
load_profiles(i, 1);
process_profile(i);
set_feature(F_SUB_PROFILE, 0);
set_scaling(get_parameter(F_SCALING), 1);
log_info("Profile now = %s", item_name(item));
break;
}
Expand Down

0 comments on commit 2b67fa6

Please sign in to comment.