diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2020-02-28 13:19:46 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2020-02-28 13:19:46 +0300 |
commit | dff9af20a4ee035a7dc906756b5dc15acf51625a (patch) | |
tree | e4bb35672965b0518d7548926b4bb21d3290ef13 /src/slic3r/GUI | |
parent | 03f17a13e756038603d471c80d22d45012f1059a (diff) |
Follow-up of 47604b6326d40bfe66c46ed471adb43d1d153e66 -> Fixed layout at startup
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r-- | src/slic3r/GUI/MainFrame.cpp | 3 | ||||
-rw-r--r-- | src/slic3r/GUI/Plater.cpp | 1 | ||||
-rw-r--r-- | src/slic3r/GUI/Plater.hpp | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 966fb7c8e..32d68b3ed 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -143,6 +143,9 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S wxGetApp().persist_window_geometry(this, true); update_ui_from_settings(); // FIXME (?) + + if (m_plater != nullptr) + m_plater->show_action_buttons(true); } void MainFrame::update_title() diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index cd6a6919a..1e13bf3af 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -5591,6 +5591,7 @@ void Plater::suppress_background_process(const bool stop_background_process) void Plater::fix_through_netfabb(const int obj_idx, const int vol_idx/* = -1*/) { p->fix_through_netfabb(obj_idx, vol_idx); } void Plater::update_object_menu() { p->update_object_menu(); } +void Plater::show_action_buttons(const bool is_ready_to_slice) const { p->show_action_buttons(is_ready_to_slice); } void Plater::copy_selection_to_clipboard() { diff --git a/src/slic3r/GUI/Plater.hpp b/src/slic3r/GUI/Plater.hpp index 2e4f2ca85..249e0a043 100644 --- a/src/slic3r/GUI/Plater.hpp +++ b/src/slic3r/GUI/Plater.hpp @@ -239,6 +239,7 @@ public: std::vector<std::string> get_colors_for_color_print() const; void update_object_menu(); + void show_action_buttons(const bool is_ready_to_slice) const; wxString get_project_filename(const wxString& extension = wxEmptyString) const; void set_project_filename(const wxString& filename); |