Skip to content

Commit

Permalink
🐛 #104 Fix bug where window wouldn't appear on current space
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Dec 1, 2023
1 parent c137d88 commit 868ce3d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Loop/LoopApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ struct LoopApp: App {
label: {
Text("Settings…")
},
preAction: {},
preAction: {
for window in NSApp.windows where window.toolbar?.items != nil {
window.close()
}
},
postAction: {
for window in NSApp.windows where window.delegate != nil {
for window in NSApp.windows where window.toolbar?.items != nil {
window.orderFrontRegardless()
window.center()
}
Expand Down

0 comments on commit 868ce3d

Please sign in to comment.