From ed62713bbed8f82ed3044c41e6863bcccff3d890 Mon Sep 17 00:00:00 2001 From: quou Date: Tue, 14 Jan 2025 22:22:13 +1100 Subject: fix editor.mat_win not getting reset on destroy --- editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-54-g00ecf