fix: save/restore window position on macos

also hide on launch
This commit is contained in:
Kingtous
2023-01-06 20:40:29 -08:00
parent c1f983a952
commit 40e9462679
7 changed files with 30 additions and 20 deletions

View File

@@ -49,7 +49,8 @@ class MainFlutterWindow: NSWindow {
super.awakeFromNib()
}
// override func bitsdojo_window_configure() -> UInt {
// return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
// }
override public func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int) {
super.order(place, relativeTo: otherWin)
hiddenWindowAtLaunch()
}
}