From dff9af20a4ee035a7dc906756b5dc15acf51625a Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 28 Feb 2020 11:19:46 +0100 Subject: [PATCH] Follow-up of 47604b6326d40bfe66c46ed471adb43d1d153e66 -> Fixed layout at startup --- src/slic3r/GUI/MainFrame.cpp | 3 +++ src/slic3r/GUI/Plater.cpp | 1 + src/slic3r/GUI/Plater.hpp | 1 + 3 files changed, 5 insertions(+) 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 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);