diff --git a/tabby/App/Core/TabbyApp.swift b/tabby/App/Core/TabbyApp.swift index 461b8dd..da1fcb8 100644 --- a/tabby/App/Core/TabbyApp.swift +++ b/tabby/App/Core/TabbyApp.swift @@ -21,7 +21,7 @@ struct TabbyApp: App { permissionGuidanceController: appDelegate.permissionGuidanceController, suggestionSettings: appDelegate.suggestionSettings, foundationModelAvailabilityService: appDelegate.foundationModelAvailabilityService, - suggestionCoordinator: appDelegate.suggestionCoordinator, + appUpdateManager: appDelegate.appUpdateManager, onOpenSettings: { appDelegate.settingsCoordinator.showSettings() }, diff --git a/tabby/UI/MenuBarView.swift b/tabby/UI/MenuBarView.swift index 77512b6..a551bd4 100644 --- a/tabby/UI/MenuBarView.swift +++ b/tabby/UI/MenuBarView.swift @@ -20,7 +20,7 @@ struct MenuBarView: View { let permissionGuidanceController: PermissionGuidanceController @ObservedObject var suggestionSettings: SuggestionSettingsModel @ObservedObject var foundationModelAvailabilityService: FoundationModelAvailabilityService - @ObservedObject var suggestionCoordinator: SuggestionCoordinator + let appUpdateManager: AppUpdateManager let onOpenSettings: () -> Void let onReportFeedback: () -> Void @@ -57,9 +57,9 @@ struct MenuBarView: View { Spacer(minLength: 0) - Text("\(suggestionCoordinator.totalTabAcceptedWordCount) words accepted") + Button("Report Bug / Feedback", action: onReportFeedback) + .buttonStyle(.borderless) .font(.subheadline) - .foregroundStyle(.secondary) } .padding(.bottom, 12) } @@ -202,8 +202,10 @@ struct MenuBarView: View { Button("Settings", action: onOpenSettings) .buttonStyle(.borderless) - Button("Report Bug / Feedback", action: onReportFeedback) - .buttonStyle(.borderless) + Button("Check for Updates") { + appUpdateManager.checkForUpdates() + } + .buttonStyle(.borderless) Spacer(minLength: 0)