From 7cf078094c0588eeee5e6bf47f55694dda98759d Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Thu, 6 Mar 2025 11:58:56 +0800 Subject: [PATCH] FIX: day of finish time does not show on mac Jira: STUDIO-9696 Change-Id: Ib39954a0d9ea92bb70a7154fe75b94237dd784c8 --- src/slic3r/GUI/CreatePresetsDialog.cpp | 2 ++ src/slic3r/GUI/StatusPanel.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/slic3r/GUI/CreatePresetsDialog.cpp b/src/slic3r/GUI/CreatePresetsDialog.cpp index 04bf8fae5..6ba44031b 100644 --- a/src/slic3r/GUI/CreatePresetsDialog.cpp +++ b/src/slic3r/GUI/CreatePresetsDialog.cpp @@ -2965,6 +2965,7 @@ void CreatePrinterPresetDialog::set_current_visible_printer() { //The entire process of creating a custom printer only needs to be done once if (m_printer_name_to_preset.size() > 0) return; + BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " entry"; PresetBundle *preset_bundle = wxGetApp().preset_bundle; const std::deque &printer_presets = preset_bundle->printers.get_presets(); wxArrayString printer_choice; @@ -2976,6 +2977,7 @@ void CreatePrinterPresetDialog::set_current_visible_printer() if (m_printer_name_to_preset.find(printer_model->value) == m_printer_name_to_preset.end()) { printer_choice.push_back(from_u8(printer_model->value)); m_printer_name_to_preset[printer_model->value] = std::make_shared(printer_preset); + BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " add printer choice: " << printer_model->value; } } } diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 7842eb436..055655423 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -763,6 +763,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent) m_staticText_finish_time->SetForegroundColour(wxColour(146, 146, 146)); m_staticText_finish_time->SetToolTip(_L("The estimated printing time for \nmulti-color models may be inaccurate.")); m_staticText_finish_day = new RectTextPanel(penel_finish_time); + m_staticText_finish_day->SetMinSize(wxSize(20, 20)); m_staticText_finish_day->Hide(); bSizer_finish_time->Add(0, 0, 1, wxEXPAND, 0); bSizer_finish_time->Add(0, 0, 0, wxLEFT, FromDIP(20));