Fix T73191: Buttons in lower left of Preferences broken

I'm still not entirely sure what was going on - I know that the execute
region didn't get initialized correctly, but doing that at a later point
didn't fix the issue. Apparently forcing the header region to
re-initialize does fix it, even though I was sure this was redundant.

Also fixes a memory leak in UI code after preferences were opened.
This commit is contained in:
Julian Eisel 2020-01-22 17:54:18 +01:00
parent abce4833a6
commit 084f072aae
Notes: blender-bot 2023-02-14 10:21:11 +01:00
Referenced by issue #73191, Some Preferences options are locked.
1 changed files with 3 additions and 0 deletions

View File

@ -4843,7 +4843,10 @@ static int userpref_show_invoke(bContext *C, wmOperator *op, const wmEvent *even
* So hiding in the temp window makes sense. */
ScrArea *area = CTX_wm_area(C);
ARegion *region = BKE_area_find_region_type(area, RGN_TYPE_HEADER);
region->flag |= RGN_FLAG_HIDDEN;
ED_region_visibility_change_update(C, area, region);
return OPERATOR_FINISHED;
}
else {