More stable window close handling

This commit is contained in:
Jack Andersen 2017-02-02 21:32:56 -10:00
parent 4fb95046a8
commit b5050159c4

View File

@ -1307,10 +1307,13 @@ public:
void setTitle(const std::string& title) void setTitle(const std::string& title)
{ {
dispatch_sync(dispatch_get_main_queue(), if (!m_closed)
^{ {
[m_nsWindow setTitle:[NSString stringWithUTF8String:title.c_str()]]; dispatch_sync(dispatch_get_main_queue(),
}); ^{
[m_nsWindow setTitle:[NSString stringWithUTF8String:title.c_str()]];
});
}
} }
void setCursor(EMouseCursor cursor) void setCursor(EMouseCursor cursor)