mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 17:08:39 +00:00
Adjusted default parameters
This commit is contained in:
parent
a89c9506f3
commit
a12568368c
@ -384,7 +384,7 @@ enum ItemType: Decodable {
|
|||||||
|
|
||||||
case .upnext:
|
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 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
|
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)
|
self = .upnext(from: from, to: to, nthEvent: nthEvent)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -304,7 +304,7 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
|
|||||||
case let .swipe(direction: direction, fingers: fingers, minOffset: minOffset, sourceApple: sourceApple, sourceBash: sourceBash):
|
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)
|
barItem = SwipeItem(identifier: identifier, direction: direction, fingers: fingers, minOffset: minOffset, sourceApple: sourceApple, sourceBash: sourceBash)
|
||||||
case let .upnext(from: from, to: to, nthEvent: nthEvent):
|
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 {
|
if let action = self.action(forItem: item), let item = barItem as? CustomButtonTouchBarItem {
|
||||||
|
|||||||
@ -352,7 +352,7 @@ To close a group, use the button:
|
|||||||
{
|
{
|
||||||
"type": "upnext",
|
"type": "upnext",
|
||||||
"from": 0, // Lower bound of search range for next event in hours. Default 0 (current time)
|
"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)
|
"nthEvent": 1 // Sets this touchbar button to show the nthEvent. Default 1 (the first upcoming event)
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user