diff options
author | quou <quou@disroot.org> | 2025-01-14 22:22:13 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-14 22:22:13 +1100 |
commit | ed62713bbed8f82ed3044c41e6863bcccff3d890 (patch) | |
tree | 947ec9ac192a256fe4e6d19a6f4e4a1385159a08 /editor.cpp | |
parent | 314dcf65a3aa874d7e406c67a8079def7d1b379a (diff) |
fix editor.mat_win not getting reset on destroy
Diffstat (limited to 'editor.cpp')
-rw-r--r-- | editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |