feat: show skip offer countdown and transitions
This commit is contained in:
@@ -925,6 +925,8 @@ private enum CLIInstanceCheck {
|
||||
case "queue":
|
||||
model.showsQueue = command["visible"] as! Bool
|
||||
model.revealControls()
|
||||
case "queueAdvance":
|
||||
model.advanceQueue(command["offset"] as! Int)
|
||||
case "caption":
|
||||
guard let view = window.contentView, let selector = captionSelector(in: view),
|
||||
let cell = selector.cell as? NSPopUpButtonCell, let menu = selector.menu else {
|
||||
@@ -1013,6 +1015,8 @@ private enum CLIInstanceCheck {
|
||||
"canChangeQuality": model.canChangeYouTubeQuality,
|
||||
"qualityHeights": model.youtubeHeights,
|
||||
"windows": windows.count,
|
||||
"allWindows": NSApp.windows.map { ["class": NSStringFromClass(type(of: $0)),
|
||||
"visible": $0.isVisible, "main": $0.canBecomeMain, "content": $0.contentView != nil] as [String: Any] },
|
||||
"hasAudio": model.state.has_audio,
|
||||
"hasVideo": model.state.has_video,
|
||||
"error": model.errorText ?? "",
|
||||
@@ -1031,6 +1035,8 @@ private enum CLIInstanceCheck {
|
||||
"editorText": editorText,
|
||||
"compact": model.isCompact,
|
||||
"showsQueue": model.showsQueue,
|
||||
"queueURLs": model.queue.items.map(\.url.absoluteString),
|
||||
"queueIndex": model.queue.items.firstIndex { $0.id == model.queue.currentID } ?? -1,
|
||||
"window": windowSnapshot(windows.first),
|
||||
"onTop": model.isOnTop,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user