Fix crash after pressing f key in file browser

Check that the inspector window exists before trying to close it.
This commit is contained in:
Lawrence Lee 2021-05-02 15:57:34 -07:00
parent bce88478c4
commit 70d30a5050

View File

@ -147,6 +147,9 @@ void Inspector::showWindow(bool scaled, bool fullscreen, bool pinned)
void Inspector::hideWindow()
{
if (!window) {
return;
}
window->set_visible(false);
}