Remember object settings dialog size and position. #3943
This commit is contained in:
parent
8d5e5519f2
commit
38e713c23c
@ -33,6 +33,9 @@ sub new {
|
|||||||
# notify tabs
|
# notify tabs
|
||||||
$self->{layers}->Closing;
|
$self->{layers}->Closing;
|
||||||
|
|
||||||
|
# save window size
|
||||||
|
wxTheApp->save_window_pos($self, "object_settings");
|
||||||
|
|
||||||
$self->EndModal(wxID_OK);
|
$self->EndModal(wxID_OK);
|
||||||
$self->Destroy;
|
$self->Destroy;
|
||||||
});
|
});
|
||||||
@ -44,6 +47,8 @@ sub new {
|
|||||||
$self->SetSizer($sizer);
|
$self->SetSizer($sizer);
|
||||||
$self->SetMinSize($self->GetSize);
|
$self->SetMinSize($self->GetSize);
|
||||||
|
|
||||||
|
wxTheApp->restore_window_pos($self, "object_settings");
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user