From 91edf908f286bb0a6b0749edb82a35cc71ba30c0 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 5 May 2018 12:56:24 -0500 Subject: [PATCH] Stubbed restore_window_pos --- src/GUI/MainFrame.cpp | 1 + src/GUI/Settings.cpp | 3 +++ src/GUI/Settings.hpp | 1 + 3 files changed, 5 insertions(+) diff --git a/src/GUI/MainFrame.cpp b/src/GUI/MainFrame.cpp index 82e2b0f09..d39d0b363 100644 --- a/src/GUI/MainFrame.cpp +++ b/src/GUI/MainFrame.cpp @@ -48,6 +48,7 @@ MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& si this->SetMinSize(wxSize(760, 490)); this->SetSize(this->GetMinSize()); wxTheApp->SetTopWindow(this); + gui_config->restore_window_pos(this, "main_frame"); this->Show(); this->Layout(); } diff --git a/src/GUI/Settings.cpp b/src/GUI/Settings.cpp index 8354c54d4..23d5808d5 100644 --- a/src/GUI/Settings.cpp +++ b/src/GUI/Settings.cpp @@ -15,4 +15,7 @@ sub save_settings { void Settings::save_window_pos(wxWindow* ref, wxString name) { } + +void Settings::restore_window_pos(wxWindow* ref, wxString name) { +} }} // namespace Slic3r::GUI diff --git a/src/GUI/Settings.hpp b/src/GUI/Settings.hpp index 0b35f62e7..aaa9bd72b 100644 --- a/src/GUI/Settings.hpp +++ b/src/GUI/Settings.hpp @@ -55,6 +55,7 @@ class Settings { std::map > window_pos { std::map >() }; void save_window_pos(wxWindow* ref, wxString name); + void restore_window_pos(wxWindow* ref, wxString name); private: const std::string LogChannel {"GUI_Settings"}; //< Which log these messages should go to.