finally fix

This commit is contained in:
Nishi 2025-12-07 05:26:16 +09:00
commit 14cf131528
Signed by: nishi
GPG key ID: 27EF69B208EB9343

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) {