Skip to content

Commit 72b5237

Browse files
committed
Fix the bug where it added AppFocus instead of Workspace commands.
1 parent 7f01b14 commit 72b5237

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

App/Sources/UI/Views/NewCommandMenu/NewCommandMenu.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ fileprivate struct ApplicationMenuView: View {
5858
Button(action: {
5959
updater.modifyWorkflow(using: transaction) { workflow in
6060
workflow.commands.append(
61-
.bundled(.init(.appFocus(command: .init(bundleIdentifer: "", hideOtherApps: false, tiling: nil)),
62-
meta: Command.MetaData()))
61+
.bundled(BundledCommand(.appFocus(command: .init(bundleIdentifer: "", hideOtherApps: false, tiling: nil)),
62+
meta: Command.MetaData()))
6363
)
6464
}
6565
}, label: {
@@ -72,8 +72,8 @@ fileprivate struct ApplicationMenuView: View {
7272
Button(action: {
7373
updater.modifyWorkflow(using: transaction) { workflow in
7474
workflow.commands.append(
75-
.bundled(.init(.appFocus(command: .init(bundleIdentifer: "", hideOtherApps: false, tiling: nil)),
76-
meta: Command.MetaData()))
75+
.bundled(BundledCommand(.workspace(command: WorkspaceCommand(bundleIdentifiers: [], hideOtherApps: false, tiling: nil)),
76+
meta: Command.MetaData()))
7777
)
7878
}
7979
}, label: {

0 commit comments

Comments
 (0)