From 7c7d80479d79ddec13338e412bb0b3df28a7ee74 Mon Sep 17 00:00:00 2001 From: milk Date: Tue, 14 Oct 2025 17:01:07 +0800 Subject: [PATCH] FIX:change translation jira:[none] Change-Id: Ife277664dab5ad85cd39825ee1e163b21e5765a2 (cherry picked from commit d8fd4e23acf946c4c9adfd3c03642433dba27eb4) --- src/slic3r/GUI/ThermalPreconditioningDialog.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/slic3r/GUI/ThermalPreconditioningDialog.cpp b/src/slic3r/GUI/ThermalPreconditioningDialog.cpp index 74b099cd23..e73e357956 100644 --- a/src/slic3r/GUI/ThermalPreconditioningDialog.cpp +++ b/src/slic3r/GUI/ThermalPreconditioningDialog.cpp @@ -28,12 +28,9 @@ ThermalPreconditioningDialog::ThermalPreconditioningDialog(wxWindow *parent, std m_refresh_timer->Start(1000); // Set remaining time - if (!remaining_time.IsEmpty()) { - m_remaining_time_label->SetLabelText(wxString::Format(_L("Remaining time: %s"), remaining_time)); - } else { - m_remaining_time_label->SetLabelText(_L("Remaining time: Calculating...")); - } + m_remaining_time_label->SetLabelText(_L("Remaining time: Calculating...")); + Layout(); // Set dialog size and position SetSize(wxSize(FromDIP(400), FromDIP(200))); wxGetApp().UpdateDlgDarkUI(this); @@ -106,6 +103,8 @@ void ThermalPreconditioningDialog::update_thermal_remaining_time() } if (m_remaining_time_label) m_remaining_time_label->SetLabelText(remaining_time); + + Layout(); } void ThermalPreconditioningDialog::on_timer(wxTimerEvent &event) {