From 61e427b8cea81fc98e1d85c1195e446c2bbc9ad2 Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Sat, 16 Nov 2024 13:40:06 +0100 Subject: [PATCH] Ask for focus only once --- Sources/AppBundle/TrayMenuModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/AppBundle/TrayMenuModel.swift b/Sources/AppBundle/TrayMenuModel.swift index 0c4fc270..7b6f9f49 100644 --- a/Sources/AppBundle/TrayMenuModel.swift +++ b/Sources/AppBundle/TrayMenuModel.swift @@ -13,6 +13,7 @@ public class TrayMenuModel: ObservableObject { func updateTrayText() { let sortedMonitors = sortedMonitors + let focus = focus TrayMenuModel.shared.trayText = (activeMode?.takeIf { $0 != mainModeId }?.first?.lets { "[\($0)] " } ?? "") + sortedMonitors .map {