finally fix

This commit is contained in:
NishiOwO
2025-12-07 05:26:16 +09:00
parent ce80f70332
commit 14cf131528

View File

@@ -374,7 +374,11 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
if(shgeti(handle->text, key) != -1) free(shget(handle->text, key));
if(value != NULL) shput(handle->text, key, v);
if(value != NULL){
shput(handle->text, key, v);
}else{
shdel(handle->text, key);
}
}
if(handle->prop_event) MwDispatch3(handle, prop_change, key);
if(value != NULL && strcmp(key, MwNbackground) == 0) {