changeset 29459:4ae7e80fb7c5 stable

prevent floating widgets from reopening after restart (bug #60279) * main-window.cc (set_window_layout): hide floating widget if not saved as visible in settings, since it was already made visible by resetting the window layout at startup before restoring the previous layout
author Torsten Lilge <ttl-octave@mailbox.org>
date Tue, 23 Mar 2021 22:22:45 +0100
parents e4cfe348b212
children 8f0d21dec537 0574c36a095e
files libgui/src/main-window.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Sat Mar 20 15:42:27 2021 +0100
+++ b/libgui/src/main-window.cc	Tue Mar 23 22:22:45 2021 +0100
@@ -1516,6 +1516,8 @@
                     else
                       widget->setVisible (true);
                   }
+                else
+                  widget->setVisible (false);
               }
             else  // not floating
               {