fix: linking

This commit is contained in:
Michael Freno
2026-01-17 22:16:12 -05:00
parent ab7811aebd
commit 19b26c9eda
2 changed files with 9 additions and 9 deletions

View File

@@ -11,9 +11,9 @@ enum TimerType: String, Codable, CaseIterable, Identifiable {
case lookAway case lookAway
case blink case blink
case posture case posture
var id: String { rawValue } var id: String { rawValue }
var displayName: String { var displayName: String {
switch self { switch self {
case .lookAway: case .lookAway:
@@ -24,7 +24,7 @@ enum TimerType: String, Codable, CaseIterable, Identifiable {
return "Posture" return "Posture"
} }
} }
var iconName: String { var iconName: String {
switch self { switch self {
case .lookAway: case .lookAway:
@@ -35,18 +35,18 @@ enum TimerType: String, Codable, CaseIterable, Identifiable {
return "figure.stand" return "figure.stand"
} }
} }
var tabIndex: Int { var tabIndex: Int {
switch self { switch self {
case .lookAway: case .lookAway:
return 0
case .blink:
return 1 return 1
case .posture: case .blink:
return 2 return 2
case .posture:
return 3
} }
} }
var tooltipText: String { var tooltipText: String {
switch self { switch self {
case .lookAway: case .lookAway:

View File

@@ -96,7 +96,7 @@ struct MenuBarContentView: View {
case .builtIn(let type): case .builtIn(let type):
onOpenSettingsTab(type.tabIndex) onOpenSettingsTab(type.tabIndex)
case .user: case .user:
onOpenSettingsTab(3) // User Timers tab onOpenSettingsTab(4)
} }
} }
) )