Fix T64642: Reset to default preferences glitch

This commit is contained in:
Campbell Barton
2019-05-16 14:42:09 +10:00
parent 74ddf3bd0d
commit 62ac2fddf7

View File

@@ -1801,6 +1801,9 @@ static int wm_userpref_read_exec(bContext *C, wmOperator *op)
U.runtime.is_dirty = true;
}
/* Needed to recalculate UI scaling values (eg, #UserDef.inv_dpi_fac). */
wm_window_clear_drawable(bmain->wm.first);
WM_event_add_notifier(C, NC_WINDOW, NULL);
return OPERATOR_FINISHED;