mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
refactored proxyIconURLDidChange to pwdDidChange
This commit is contained in:
@ -238,7 +238,7 @@ class BaseTerminalController: NSWindowController,
|
||||
|
||||
}
|
||||
|
||||
func proxyIconURLDidChange(to: URL?){
|
||||
func pwdDidChange(to: URL?){
|
||||
|
||||
guard let window else { return }
|
||||
|
||||
|
@ -11,8 +11,8 @@ protocol TerminalViewDelegate: AnyObject {
|
||||
/// The title of the terminal should change.
|
||||
func titleDidChange(to: String)
|
||||
|
||||
/// The URL of the proxy icon should change.
|
||||
func proxyIconURLDidChange(to: URL?)
|
||||
/// The URL of the pwd should change.
|
||||
func pwdDidChange(to: URL?)
|
||||
|
||||
/// The cell size changed.
|
||||
func cellSizeDidChange(to: NSSize)
|
||||
@ -99,7 +99,7 @@ struct TerminalView<ViewModel: TerminalViewModel>: View {
|
||||
self.delegate?.titleDidChange(to: newValue)
|
||||
}
|
||||
.onChange(of: proxyIconURL) { newValue in
|
||||
self.delegate?.proxyIconURLDidChange(to: newValue)
|
||||
self.delegate?.pwdDidChange(to: newValue)
|
||||
}
|
||||
.onChange(of: cellSize) { newValue in
|
||||
guard let size = newValue else { return }
|
||||
|
Reference in New Issue
Block a user