mirror of
https://github.com/AxioDL/boo.git
synced 2025-07-05 04:35:57 +00:00
More stable window close handling
This commit is contained in:
parent
4fb95046a8
commit
b5050159c4
@ -1306,12 +1306,15 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setTitle(const std::string& title)
|
void setTitle(const std::string& title)
|
||||||
|
{
|
||||||
|
if (!m_closed)
|
||||||
{
|
{
|
||||||
dispatch_sync(dispatch_get_main_queue(),
|
dispatch_sync(dispatch_get_main_queue(),
|
||||||
^{
|
^{
|
||||||
[m_nsWindow setTitle:[NSString stringWithUTF8String:title.c_str()]];
|
[m_nsWindow setTitle:[NSString stringWithUTF8String:title.c_str()]];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void setCursor(EMouseCursor cursor)
|
void setCursor(EMouseCursor cursor)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user