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
1 changed files with 1 additions and 4 deletions

View File

@ -104,7 +104,7 @@ FConsoleWindow::FConsoleWindow()
NSString* const title = [NSString stringWithFormat:@"%s %s - Console", GAMESIG, GetVersionString()];
[m_window initWithContentRect:initialRect
styleMask:NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask
styleMask:NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask
backing:NSBackingStoreBuffered
defer:NO];
[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("\n");
// It's impossible to restore minimized window in modal loop
[m_window setStyleMask:[m_window styleMask] & ~NSMiniaturizableWindowMask];
[NSApp runModalForWindow:m_window];
}