Fix: File browser errors not reported in the UI
This is a partial fix, in that it only brings back the banner reports in the status bar. The popups still don't show up but I need to investigate more. It's really ugly that reports rely on wmWindowManager.winactive, but that's how it is... Partialy fixes T69581.
This commit is contained in:
parent
39f3474cf1
commit
4c20c53b89
Notes:
blender-bot
2023-02-14 08:35:51 +01:00
Referenced by issue #69581, Error popups spawned from new FileBrowser are "swallowed" (e.g. Addon import/export errors)
|
@ -2397,6 +2397,7 @@ static int wm_handler_fileselect_do(bContext *C,
|
|||
CTX_wm_window_set(C, ctx_win); // wm_window_close() NULLs.
|
||||
/* Some operators expect a drawable context (for EVT_FILESELECT_EXEC) */
|
||||
wm_window_make_drawable(wm, ctx_win);
|
||||
wm->winactive = ctx_win; /* Reports use this... */
|
||||
}
|
||||
else if (file_sa->full) {
|
||||
ED_screen_full_prevspace(C, file_sa);
|
||||
|
|
Loading…
Reference in New Issue