mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Working Focus mode - focus type not yet supported
This commit is contained in:
parent
4444df4cb4
commit
b643f1d905
3 changed files with 95 additions and 29 deletions
|
|
@ -89,10 +89,16 @@ struct DoNotDisturbLiveActivity: View {
|
|||
private var labelText: String {
|
||||
let trimmed = manager.currentFocusModeName.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
if !trimmed.isEmpty {
|
||||
if focusMode == .doNotDisturb {
|
||||
return "Focus"
|
||||
}
|
||||
return trimmed
|
||||
}
|
||||
|
||||
let fallback = focusMode.displayName
|
||||
if focusMode == .doNotDisturb {
|
||||
return "Focus"
|
||||
}
|
||||
return fallback.isEmpty ? "Focus" : fallback
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue