Page MenuHome

UI: Remove Menus & Show Wait Cursor When Loading
Needs ReviewPublic

Authored by Harley Acheson (harley) on Apr 25 2021, 3:02 AM.

Details

Reviewers
None
Group Reviewers
User Interface
Summary

While loading a blend file this patch closes any open menus and changes
the mouse cursor to "wait".


Loading a blend file can sometimes make the system look unresponsive. If there is a menu up at the time (like if you select from File/Recent) it will remain frozen onscreen until the file is loaded:

Although the mouse cursor initially changes to a "wait" cursor, this is reset back to a normal pointer very early on in the process. These things both make the program look like it is hung. And not in a good way.

This patch just removes any menus that might be showing, and also ensures that the "waiting" mouse cursor continues to show until (almost) the end.

This is a subset of D10484. It makes sense that we might debate whether or not we want a "loading" dialog and what it might look like, but that can be separate from this.

Diff Detail

Repository
rB Blender

Event Timeline

Harley Acheson (harley) requested review of this revision.Apr 25 2021, 3:02 AM
Harley Acheson (harley) created this revision.
Harley Acheson (harley) retitled this revision from UI: File Loading Looking Frozen to UI: File Loading Menu Reset and Waiting Cursor.
Harley Acheson (harley) edited the summary of this revision. (Show Details)

Updating to current state of master

Harley Acheson (harley) retitled this revision from UI: File Loading Menu Reset and Waiting Cursor to UI: Remove Menus & Show Wait Cursor When Loading.

Using G.background instead of WITH_HEADLESS

Updated to current state of master.