Files
firewall/macos/App/MenuBarView.swift
ian-at-strix b212bb92ee Uninstall through the bundled CLI (#24)
* Remove the CA from the app, not the extension

* Uninstall through the bundled CLI

* Log uninstall only when something was removed

* Rename the Installer app to StrixFirewall (#28)

* Rename the Installer app to Firewall

* Name the app Strix Firewall

* Name the app StrixFirewall

* Show why the extension failed to start (#31)

* Delete the CA secret without reading it

* Treat a missing extension as already deactivated

* Leave installing the app to the package
2026-10-21 16:01:25 -04:00

27 lines
635 B
Swift

import SwiftUI
struct MenuBarView: View {
@ObservedObject var model: FirewallModel
@Environment(\.openWindow) private var openWindow
var body: some View {
Text(model.screening ? "Screening downloads" : "Not running")
Divider()
Button("Setup") {
SetupWindow.open(openWindow)
}
Button(model.screening ? "Pause" : "Resume") {
Task { await model.setEnabled(!model.screening) }
}
.disabled(model.busy || !model.configured)
Button("Restart") {
Task { await model.restart() }
}
.disabled(model.busy)
}
}