use bool_to_str

This commit is contained in:
2025-02-06 10:29:42 -06:00
committed by Celtic Minstrel
parent d2fb94b6c6
commit aed913a7f4

View File

@@ -213,11 +213,7 @@ bool sync_prefs() {
switch((int)type) {
case kBool: {
bool bvalue = [standard boolForKey: pref];
if(bvalue == true){
prefs_recording << "true";
}else{
prefs_recording << "false";
}
prefs_recording << bool_to_str(bvalue);
} break;
case kInt: {
int ivalue = (int)[standard integerForKey: pref];