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