summaryrefslogtreecommitdiffhomepage
path: root/editor/app.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-19 11:11:04 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-19 11:11:04 +0100
commitf54c64e3d8d8efaeb128b042e662a7d75a802707 (patch)
tree67dc907374493f36a238d829f6bc0eeaf9e4a58b /editor/app.cpp
parenta39791fd400e97f741db2879e17a4d41e854bfd1 (diff)
editor: kill popup when loading game
Diffstat (limited to 'editor/app.cpp')
-rw-r--r--editor/app.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/app.cpp b/editor/app.cpp
index 89f9ccf6..93fca78b 100644
--- a/editor/app.cpp
+++ b/editor/app.cpp
@@ -84,9 +84,7 @@ void app::reset_world(struct world&& w_)
_editor.on_release();
_editor.clear_selection();
- inspectors.clear();
- _pending_popup = false;
- _popup_target = {};
+ kill_popups(true);
clear_keys();
cursor = {};