# HG changeset patch # User Olaf Wintermann # Date 1765539843 -3600 # Node ID c9395b30e5c8e9ba5f4f49d107001d41103613c5 # Parent 8ebf55d78341b259bf69818be674d73d167fed81 fix uic_store_app_properties diff -r 8ebf55d78341 -r c9395b30e5c8 ui/common/objs.mk --- 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) diff -r 8ebf55d78341 -r c9395b30e5c8 ui/common/properties.c --- 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);