From 38e713c23c2244d8e1d42675e20814c442cd3383 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 10 May 2017 16:17:28 +0200 Subject: [PATCH] Remember object settings dialog size and position. #3943 --- lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm b/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm index e8f6b938e9..bf2e50dcc2 100644 --- a/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm +++ b/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm @@ -33,6 +33,9 @@ sub new { # notify tabs $self->{layers}->Closing; + # save window size + wxTheApp->save_window_pos($self, "object_settings"); + $self->EndModal(wxID_OK); $self->Destroy; }); @@ -44,6 +47,8 @@ sub new { $self->SetSizer($sizer); $self->SetMinSize($self->GetSize); + wxTheApp->restore_window_pos($self, "object_settings"); + return $self; }