-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure terminal windows don't part from parent window when toggl…
…ing visibility (#4789) As of version 1.0.1 (macOS build) when running the toggle visibility action a window with tabs is made into multiple windows. This PR ensures terminal tabs are reconstructed and correctly placed into its parent window. # Demo https://github.com/user-attachments/assets/44f14bca-15a1-4717-ba0a-44f0767feec3 FYI: I will create another PR to ensure the right tab is focused after the main window is restored. Solves #4329
- Loading branch information
Showing
4 changed files
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// A wrapper that holds a weak reference to an object. This lets us create native containers | ||
/// of weak references. | ||
class Weak<T: AnyObject> { | ||
weak var value: T? | ||
|
||
init(_ value: T) { | ||
self.value = value | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126c050
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 👍