Przeglądaj źródła

Active during fix

Jonas Björkert 1 rok temu
rodzic
commit
f28c2105eb
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      LoopFollow/Alarm/Alarm.swift

+ 2 - 2
LoopFollow/Alarm/Alarm.swift

@@ -35,7 +35,7 @@ enum ActiveOption: String, CaseIterable, Codable, DayNightDisplayable {
 extension PlaySoundOption {
     static func allowed(for active: ActiveOption) -> [PlaySoundOption] {
         switch active {
-        case .always: return [.always, .day, .night, .never]
+        case .always: return PlaySoundOption.allCases
         case .day: return [.day, .never]
         case .night: return [.night, .never]
         }
@@ -45,7 +45,7 @@ extension PlaySoundOption {
 extension RepeatSoundOption {
     static func allowed(for active: ActiveOption) -> [RepeatSoundOption] {
         switch active {
-        case .always: return [.always, .day, .night, .never]
+        case .always: return RepeatSoundOption.allCases
         case .day: return [.day, .never]
         case .night: return [.night, .never]
         }