Page MenuHome

UI: Close After Area Duplicate
Needs ReviewPublic

Authored by Harley Acheson (harley) on Apr 27 2021, 12:53 AM.
Tokens
"Burninate" token, awarded by lone_noel."Love" token, awarded by Tetone."Love" token, awarded by gilberto_rodrigues."Pterodactyl" token, awarded by Gavriel5578."Like" token, awarded by RedMser.

Details

Reviewers
None
Group Reviewers
User Interface
Summary

Something to possibly consider because we have a new ability with the addition of Area Close.

Right now SCREEN_OT_area_dupli breaks out a new window, created as a duplication of an existing area. It works great (although I think the window might be incorrect size on Mac Retina). However, the operation is never enough on its own and always must be followed by further operation. This is because it makes the new area at the location of the old, and the old area remains. So you don't gain any utility instantly, you just have two identical things with one obscuring the other.

With this patch install the old area is closed when the new area is created (as long as the screen contains more than one area). This way you immediately have more space in the original window, which is very likely the primary reason you called this operator at all.

Diff Detail

Repository
rB Blender

Event Timeline

Harley Acheson (harley) requested review of this revision.Apr 27 2021, 12:53 AM
Harley Acheson (harley) created this revision.

Updating to current state of master.

Had to update again because of changes to master.

Harley Acheson (harley) edited the summary of this revision. (Show Details)

Updating to current state of master.

Updated to current state of master.

Updated to the current state of master.