From b964b6702cda917a006cb5549cfedec1c61f5ef1 Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Tue, 5 Mar 2019 20:24:33 +1100 Subject: Remember dialog visibility with the floating dialog behaviour Fixes https://bugs.launchpad.net/inkscape/+bug/1674155 --- src/ui/dialog/floating-behavior.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/dialog/floating-behavior.cpp b/src/ui/dialog/floating-behavior.cpp index 5c05603ca..6c0185233 100644 --- a/src/ui/dialog/floating-behavior.cpp +++ b/src/ui/dialog/floating-behavior.cpp @@ -172,7 +172,10 @@ FloatingBehavior::onShowF12() } void -FloatingBehavior::onShutdown() {} +FloatingBehavior::onShutdown() +{ + _dialog.save_status(!_dialog._user_hidden, 1, GDL_DOCK_TOP); // Make sure 1 == DockItem::FLOATING_STATE +} void FloatingBehavior::onDesktopActivated (SPDesktop *desktop) -- cgit v1.2.3