diff --git a/MTMR/ItemsParsing.swift b/MTMR/ItemsParsing.swift index 7dd4003..b299877 100644 --- a/MTMR/ItemsParsing.swift +++ b/MTMR/ItemsParsing.swift @@ -384,7 +384,7 @@ enum ItemType: Decodable { case .upnext: let from = try container.decodeIfPresent(Double.self, forKey: .from) ?? 0 // Lower bounds of period of time in hours to search for events - let to = try container.decodeIfPresent(Double.self, forKey: .to) ?? 1 // Upper bounds of period of time in hours to search for events + let to = try container.decodeIfPresent(Double.self, forKey: .to) ?? 12 // Upper bounds of period of time in hours to search for events let nthEvent = try container.decodeIfPresent(Int.self, forKey: .nthEvent) ?? 1 // 1 indexed array. Get the 1st, 2nd, 3rd event to display multiple notifications self = .upnext(from: from, to: to, nthEvent: nthEvent) } diff --git a/MTMR/TouchBarController.swift b/MTMR/TouchBarController.swift index 9341255..bb613f6 100644 --- a/MTMR/TouchBarController.swift +++ b/MTMR/TouchBarController.swift @@ -304,7 +304,7 @@ class TouchBarController: NSObject, NSTouchBarDelegate { case let .swipe(direction: direction, fingers: fingers, minOffset: minOffset, sourceApple: sourceApple, sourceBash: sourceBash): barItem = SwipeItem(identifier: identifier, direction: direction, fingers: fingers, minOffset: minOffset, sourceApple: sourceApple, sourceBash: sourceBash) case let .upnext(from: from, to: to, nthEvent: nthEvent): - barItem = UpNextBarItem(identifier: identifier, interval: 10, from: from, to: to, nthEvent: nthEvent) + barItem = UpNextBarItem(identifier: identifier, interval: 2, from: from, to: to, nthEvent: nthEvent) } if let action = self.action(forItem: item), let item = barItem as? CustomButtonTouchBarItem { diff --git a/README.md b/README.md index c8b10e0..416ce6c 100644 --- a/README.md +++ b/README.md @@ -352,7 +352,7 @@ To close a group, use the button: { "type": "upnext", "from": 0, // Lower bound of search range for next event in hours. Default 0 (current time) - "to": 1, // Upper bounds of search range for next event in hours. Default 1 (one hour in the future) + "to": 12, // Upper bounds of search range for next event in hours. Default 12 (12 hours in the future) "nthEvent": 1 // Sets this touchbar button to show the nthEvent. Default 1 (the first upcoming event) }, ```