mirror of
https://github.com/usestrix/firewall.git
synced 2026-11-09 13:31:32 -10:00
* 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
27 lines
635 B
Swift
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)
|
|
}
|
|
}
|