Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
perf(menubar): stop redrawing the identical status icon
altic-devfea6d6c90285
diff --git a/Sources/Fluid/Services/MenuBarManager.swift b/Sources/Fluid/Services/MenuBarManager.swiftindex ce8bd0fe..0de9c01b 100644--- a/Sources/Fluid/Services/MenuBarManager.swift+++ b/Sources/Fluid/Services/MenuBarManager.swift@@ -586,11 +586,13 @@ final class MenuBarManager: NSObject, ObservableObject, NSMenuDelegate {}private func updateMenuBarIcon() {- guard let statusItem = statusItem else { return }+ guard let statusItem = statusItem, statusItem.button?.image == nil else { return }- // Use MenuBarIcon asset - vectorized from logo+ // The template icon is identical in every state. Assigning a fresh+ // NSImage on each recording change forced a status item redraw plus a+ // WindowServer fence (about 200 ms measured) on every start and stop.if let image = NSImage(named: "MenuBarIcon") {- image.isTemplate = true // Adapts to light/dark mode and tints red when recording+ image.isTemplate = truestatusItem.button?.image = image}}