ui/common/properties.c

changeset 763
258ec399fbe6
parent 762
9452eccfc0f0
child 974
dc72d666d721
--- a/ui/common/properties.c	Sat Sep 13 19:52:18 2025 +0200
+++ b/ui/common/properties.c	Sat Sep 13 19:53:50 2025 +0200
@@ -204,9 +204,9 @@
 
 void ui_set_property(const char *name, const char *value) {
     if(value) {
-        cxMapRemove(application_properties, name);
+        cxMapPut(application_properties, name, strdup(value));
     } else {
-        cxMapPut(application_properties, name, strdup(value));
+        cxMapRemove(application_properties, name);
     }
 }
 

mercurial