mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Truncated "Reduce Interruptions" to "Reduce Interr." to avoid scrolling text
This commit is contained in:
parent
2e5be4d4c6
commit
f591d7da1e
1 changed files with 4 additions and 1 deletions
|
|
@ -131,6 +131,9 @@ final class DoNotDisturbManager: ObservableObject {
|
||||||
|
|
||||||
if nameChanged {
|
if nameChanged {
|
||||||
self.currentFocusModeName = finalName
|
self.currentFocusModeName = finalName
|
||||||
|
.localizedCaseInsensitiveContains(
|
||||||
|
"Reduce Interruptions"
|
||||||
|
) ? "Reduce Interr." : finalName
|
||||||
}
|
}
|
||||||
|
|
||||||
if identifierChanged || nameChanged || shouldToggleActive {
|
if identifierChanged || nameChanged || shouldToggleActive {
|
||||||
|
|
@ -322,7 +325,7 @@ enum FocusModeType: String, CaseIterable {
|
||||||
case .gaming: return "Gaming"
|
case .gaming: return "Gaming"
|
||||||
case .mindfulness: return "Mindfulness"
|
case .mindfulness: return "Mindfulness"
|
||||||
case .reading: return "Reading"
|
case .reading: return "Reading"
|
||||||
case .reduceInterruptions: return "Reduce Interruptions"
|
case .reduceInterruptions: return "Reduce Interr."
|
||||||
case .custom: return "Focus"
|
case .custom: return "Focus"
|
||||||
case .unknown: return "Focus Mode"
|
case .unknown: return "Focus Mode"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue