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:
@@ -147,6 +147,9 @@ void Inspector::showWindow(bool scaled, bool fullscreen, bool pinned)
|
|||||||
|
|
||||||
void Inspector::hideWindow()
|
void Inspector::hideWindow()
|
||||||
{
|
{
|
||||||
|
if (!window) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
window->set_visible(false);
|
window->set_visible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user