Skip to content

Commit

Permalink
refactor: update window restoration code to official api
Browse files Browse the repository at this point in the history
  • Loading branch information
godly-devotion committed Dec 5, 2024
1 parent c38b003 commit ee718fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Front Row/FrontRowApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ struct FrontRowApp: App {
self._presentedViewManager = .init(wrappedValue: .shared)
self._windowController = .init(wrappedValue: .shared)

UserDefaults.standard.removeObject(forKey: "NSWindow Frame main")
UserDefaults.standard.set(false, forKey: "NSFullScreenMenuItemEverywhere")
}

Expand Down Expand Up @@ -57,6 +56,7 @@ struct FrontRowApp: App {
}
}
.windowStyle(.hiddenTitleBar)
.restorationBehavior(.disabled)
.commands {
AppCommands()
FileCommands(playEngine: $playEngine)
Expand Down

0 comments on commit ee718fa

Please sign in to comment.