Fri, 12 Dec 2025 12:44:03 +0100
fix uic_store_app_properties
| ui/common/objs.mk | file | annotate | diff | comparison | revisions | |
| ui/common/properties.c | file | annotate | diff | comparison | revisions |
--- a/ui/common/objs.mk Fri Dec 12 12:38:35 2025 +0100 +++ b/ui/common/objs.mk Fri Dec 12 12:44:03 2025 +0100 @@ -38,7 +38,6 @@ COMMON_OBJ += properties$(OBJ_EXT) COMMON_OBJ += menu$(OBJ_EXT) COMMON_OBJ += toolbar$(OBJ_EXT) -COMMON_OBJ += ucx_properties$(OBJ_EXT) COMMON_OBJ += threadpool$(OBJ_EXT) COMMON_OBJ += condvar$(OBJ_EXT) COMMON_OBJ += args$(OBJ_EXT)
--- a/ui/common/properties.c Fri Dec 12 12:38:35 2025 +0100 +++ b/ui/common/properties.c Fri Dec 12 12:44:03 2025 +0100 @@ -179,7 +179,7 @@ break; } } - return status == CX_PROPERTIES_NO_ERROR ? 0 : 1; + return status <= CX_PROPERTIES_NO_DATA ? 0 : 1; } void uic_load_app_properties() { @@ -200,7 +200,7 @@ cxMapPut(application_properties, key, cx_strdup(value).ptr); } - if(status != CX_PROPERTIES_NO_ERROR) { + if(status > CX_PROPERTIES_NO_DATA) { fprintf(stderr, "Error: cannot load properties: %d\n", (int)status); } else { cxMapRehash(application_properties); @@ -290,7 +290,7 @@ int ret = 0; CxMapIterator i = cxMapIterator(application_properties); cx_foreach(CxMapEntry *, entry, i) { - fprintf(file, "%.*s: %s\n", (int)entry->key->len, entry->key->data, entry->value); + fprintf(file, "%.*s = %s\n", (int)entry->key->len, entry->key->data, entry->value); } cxMapRehash(application_properties);