Fix: Only reset timer when disabling debug premium if it was a premium option (5s/10s)

This commit is contained in:
Matt Bruce 2026-01-04 17:55:19 -06:00
parent ac3b9459b4
commit 83b03f269f

View File

@ -357,7 +357,9 @@ final class SettingsViewModel: RingLightConfigurable {
settings.photoQualityRaw = PhotoQuality.medium.rawValue
}
if settings.selectedTimerRaw != TimerOption.three.rawValue {
// Only reset timer if it's a premium option (5s or 10s)
let currentTimer = TimerOption(rawValue: settings.selectedTimerRaw) ?? .three
if Self.premiumTimerOptions.contains(currentTimer) {
settings.selectedTimerRaw = TimerOption.three.rawValue
}