summaryrefslogtreecommitdiff
path: root/editor.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-14 22:22:13 +1100
committerquou <quou@disroot.org>2025-01-14 22:22:13 +1100
commited62713bbed8f82ed3044c41e6863bcccff3d890 (patch)
tree947ec9ac192a256fe4e6d19a6f4e4a1385159a08 /editor.cpp
parent314dcf65a3aa874d7e406c67a8079def7d1b379a (diff)
fix editor.mat_win not getting reset on destroy
Diffstat (limited to 'editor.cpp')
-rw-r--r--editor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor.cpp b/editor.cpp
index da83e15..a51c421 100644
--- a/editor.cpp
+++ b/editor.cpp
@@ -16,8 +16,10 @@ static struct {
static int mat_win_handler(UI::Element* e, const UI::Message& m) {
(void)e;
- if (m.type == UI::Message::Type::destroy)
+ if (m.type == UI::Message::Type::destroy) {
editor.mat_btn->enable();
+ editor.mat_win = 0;
+ }
return 0;
}