diff --git a/WrangURL/UI/MenuBarView.swift b/WrangURL/UI/MenuBarView.swift index 5452b75..34aca0c 100644 --- a/WrangURL/UI/MenuBarView.swift +++ b/WrangURL/UI/MenuBarView.swift @@ -1,7 +1,6 @@ import SwiftUI struct MenuBarView: View { - @Environment(ConfigStore.self) private var config @Environment(BrowserRegistry.self) private var browsers @Environment(URLRouter.self) private var router @Environment(DefaultBrowserManager.self) private var defaultBrowser @@ -28,25 +27,6 @@ struct MenuBarView: View { Divider() - Picker("Fallback Browser", selection: fallbackBrowserID) { - ForEach(browsers.browsers) { browser in - Label { - Text(browser.name) - } icon: { - if let icon = browsers.menuIcon(forID: browser.id) { - Image(nsImage: icon) - } - } - .tag(Optional(browser.id)) - } - } - Picker("When No Rule Matches", selection: unmatchedBehavior) { - Text("Open in Fallback Browser").tag(UnmatchedBehavior.openFallback) - Text("Ask Which Browser to Use").tag(UnmatchedBehavior.showPicker) - } - - Divider() - Section("Recent Links") { if router.recent.isEmpty { Text("No links yet") @@ -89,20 +69,6 @@ struct MenuBarView: View { } } - private var fallbackBrowserID: Binding { - Binding( - get: { config.config.settings.fallbackBrowserID }, - set: { id in config.update { $0.settings.fallbackBrowserID = id } } - ) - } - - private var unmatchedBehavior: Binding { - Binding( - get: { config.config.settings.unmatchedBehavior }, - set: { behavior in config.update { $0.settings.unmatchedBehavior = behavior } } - ) - } - private func recentTitle(for entry: URLRouter.Entry) -> String { let url = entry.url.absoluteString.truncated(to: 50) if let rule = entry.ruleName { diff --git a/docs/index.html b/docs/index.html index 1db9834..e76959f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -346,7 +346,6 @@

Menu bar and settings

The menu bar icon gives you quick access to the things you change most:

@@ -361,7 +360,7 @@

Menu bar and settings

- Settings → General covers the same routing options, plus launch at login, automatic updates, whether URLs are logged, whether to keep a history, and your configuration. + Settings → General covers the fallback browser and what happens when no rule matches, plus launch at login, automatic updates, whether URLs are logged, whether to keep a history, and your configuration. Use Import… and Export… to move your rules and settings between Macs as a JSON file.