Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Loop/Core/LoopManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ extension LoopManager {
// This is only needed because if preview window is moved
// onto a new screen, it needs to receive a window action
previewController.setAction(to: currentAction)
radialMenuController.setAction(to: currentAction)
radialMenuController.setAction(to: currentAction, parent: parentCycleAction)

if let parentCycleAction {
currentAction = newAction
Expand Down Expand Up @@ -401,7 +401,7 @@ extension LoopManager {

Task { @MainActor in
previewController.setAction(to: newAction)
radialMenuController.setAction(to: newAction)
radialMenuController.setAction(to: newAction, parent: parentCycleAction)

if !Defaults[.previewVisibility], let screenToResizeOn, let targetWindow {
WindowEngine.resize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ final class RadialMenuController {
viewModel?.setWindow(to: newWindow)
}

func setAction(to newAction: WindowAction) {
viewModel?.setAction(to: newAction)
func setAction(to newAction: WindowAction, parent: WindowAction?) {
viewModel?.setAction(to: newAction, parent: parent)

Log.ui("Set action to '\(newAction.description)'", category: .radialMenuController)
}
Expand Down