Remove info pane from split view instead of hiding it #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When the info pane was simply hidden, the split view would still allow you to resize the remaining split (note the cursor in the first recording), which resulted in weird behaviour. Instead, just remove the info pane split and then the split view doesn't let you resize. Had to move where the global "cancel install" alert is in the view hierarchy as a result, because it might have to be presented even if the info pane isn't part of the view hierarchy.
I tried changing the alert so it wasn't a part of the main window at all, and was instead local to the buttons that triggered its presentation, and this worked for all but the case where the CancelInstallButton was used from the Xcode menu. So for now I left it close to where it already was.
Before:
CleanShot.2021-02-06.at.18.01.31.mp4
After:
CleanShot.2021-02-06.at.18.26.48.mp4