mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 02:13:29 +00:00
finally fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user