Skip to content

Commit 637334c

Browse files
committed
fix(#218): title bar buttons during onboarding
1 parent 464af25 commit 637334c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Notification Agent Onboarding/Extensions/NotificationDispatch-Extension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ extension NotificationDispatch {
3333
} else if object.hideTitleBarButtons ?? false {
3434
mainWindow.styleMask.remove(.closable)
3535
mainWindow.styleMask.remove(.miniaturizable)
36+
} else {
37+
// Not sure why since Sonoma we need to manually add the default buttons to the Title Bar.
38+
mainWindow.styleMask.update(with: .closable)
39+
mainWindow.styleMask.update(with: .miniaturizable)
3640
}
3741
mainWindow.canBecomeVisibleWithoutLogin = true
3842

0 commit comments

Comments
 (0)