1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 00:58:37 +00:00

Adjusted default parameters

This commit is contained in:
connorgmeehan 2020-07-26 11:22:12 +10:00
parent a89c9506f3
commit a12568368c
3 changed files with 3 additions and 3 deletions

View File

@ -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)
}

View File

@ -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 {

View File

@ -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)
},
```