window: macos: disable window restoration

This commit is contained in:
Wez Furlong committed 2021-05-08 09:36:19 -07:00
1 parent a44607fb3f
commit 3d760653b4
1 file changed
+1
+1
View File
@@ -416,6 +416,7 @@ impl Window {
// Prevent Cocoa native tabs from being used
let _: () = msg_send![*window, setTabbingMode:2 /* NSWindowTabbingModeDisallowed */];
let _: () = msg_send![*window, setRestorable:NO];
window.setReleasedWhenClosed_(NO);
let ns_color: id = msg_send![Class::get("NSColor").unwrap(), alloc];