Disabled miniaturization for OS X startup window

Old versions of OS X don't support changing of window style mask
This commit is contained in:
alexey.lysiuk 2015-12-30 12:19:50 +02:00
parent db207feed1
commit 3466a8c7a9

View file

@ -104,7 +104,7 @@ FConsoleWindow::FConsoleWindow()
NSString* const title = [NSString stringWithFormat:@"%s %s - Console", GAMESIG, GetVersionString()]; NSString* const title = [NSString stringWithFormat:@"%s %s - Console", GAMESIG, GetVersionString()];
[m_window initWithContentRect:initialRect [m_window initWithContentRect:initialRect
styleMask:NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask styleMask:NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask
backing:NSBackingStoreBuffered backing:NSBackingStoreBuffered
defer:NO]; defer:NO];
[m_window setMinSize:[m_window frame].size]; [m_window setMinSize:[m_window frame].size];
@ -186,9 +186,6 @@ void FConsoleWindow::ShowFatalError(const char* const message)
AddText(PalEntry(255, 255, 170), message); AddText(PalEntry(255, 255, 170), message);
AddText("\n"); AddText("\n");
// It's impossible to restore minimized window in modal loop
[m_window setStyleMask:[m_window styleMask] & ~NSMiniaturizableWindowMask];
[NSApp runModalForWindow:m_window]; [NSApp runModalForWindow:m_window];
} }