setting_bool_action_toggle_default - use setting_with_string_representation

This commit is contained in:
twinaphex 2015-08-17 16:47:32 +02:00
parent 06d1b033e9
commit 7bd2372d09

View File

@ -879,7 +879,8 @@ static int setting_bool_action_toggle_default(void *data, bool wraparound)
if (!setting)
return -1;
*setting->value.boolean = !(*setting->value.boolean);
setting_set_with_string_representation(setting,
*setting->value.boolean ? "false" : "true");
return 0;
}