diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-17 12:56:23 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-17 12:56:35 +0200 |
| commit | 4d94a08bd2fcd681d33bfb51228ace3b432b19ab (patch) | |
| tree | 5867ce7627bf48eaf8cd7fe8ce76839ea37ab36b /fluid/Fl_Widget_Type.cxx | |
| parent | 4dffa31520f66fe0baea574ea391ec58a77eaa49 (diff) | |
FLUID: fix window visibility across project file update
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 342d2145a..87c3ada06 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -175,7 +175,9 @@ void Fl_Widget_Type::setlabel(const char *n) { redraw(); } -Fl_Widget_Type::Fl_Widget_Type() { +Fl_Widget_Type::Fl_Widget_Type() +: override_visible_(0) +{ for (int n=0; n<NUM_EXTRA_CODE; n++) {extra_code_[n] = 0; } subclass_ = 0; hotspot_ = 0; @@ -3264,7 +3266,7 @@ void Fl_Widget_Type::write_properties(Fd_Project_Writer &f) { if (s != fs) f.write_string("textsize %d", s); if (c != fc) f.write_string("textcolor %d", c); }} - if (!o->visible()) f.write_string("hide"); + if (!o->visible() && !override_visible_) f.write_string("hide"); if (!o->active()) f.write_string("deactivate"); if (resizable()) f.write_string("resizable"); if (hotspot()) f.write_string(is_menu_item() ? "divider" : "hotspot"); |
