diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-08 15:52:42 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-08 21:03:04 -0700 |
| commit | 59829f53598b48c73137fbfb1d0c7e81375569ac (patch) | |
| tree | 697e1378fc5946d56676a4195fe69256014ab07c /macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift | |
| parent | f975ac8019c2e5854dbc4b8f6fe1f1913b319a72 (diff) | |
Sparkle user driver, drives updates to the view model.
Diffstat (limited to 'macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift')
| -rw-r--r-- | macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift b/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift index 6e657f33e..4737bacaf 100644 --- a/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift +++ b/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift @@ -101,8 +101,7 @@ class TerminalWindow: NSWindow { updateAccessory.layoutAttribute = .right updateAccessory.view = NSHostingView(rootView: UpdateAccessoryView( viewModel: viewModel, - model: appDelegate.updateUIModel, - actions: appDelegate.updateActions + model: appDelegate.updateViewModel )) addTitlebarAccessoryViewController(updateAccessory) updateAccessory.view.translatesAutoresizingMaskIntoConstraints = false @@ -532,10 +531,9 @@ extension TerminalWindow { struct UpdateAccessoryView: View { @ObservedObject var viewModel: ViewModel @ObservedObject var model: UpdateViewModel - let actions: UpdateUIActions var body: some View { - UpdatePill(model: model, actions: actions) + UpdatePill(model: model) .padding(.top, viewModel.accessoryTopPadding) .padding(.trailing, 10) } |
