mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX:change translation
jira:[none] Change-Id: Ife277664dab5ad85cd39825ee1e163b21e5765a2 (cherry picked from commit d8fd4e23acf946c4c9adfd3c03642433dba27eb4)
This commit is contained in:
@@ -28,12 +28,9 @@ ThermalPreconditioningDialog::ThermalPreconditioningDialog(wxWindow *parent, std
|
|||||||
m_refresh_timer->Start(1000);
|
m_refresh_timer->Start(1000);
|
||||||
|
|
||||||
// Set remaining time
|
// Set remaining time
|
||||||
if (!remaining_time.IsEmpty()) {
|
m_remaining_time_label->SetLabelText(_L("Remaining time: Calculating..."));
|
||||||
m_remaining_time_label->SetLabelText(wxString::Format(_L("Remaining time: %s"), remaining_time));
|
|
||||||
} else {
|
|
||||||
m_remaining_time_label->SetLabelText(_L("Remaining time: Calculating..."));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Layout();
|
||||||
// Set dialog size and position
|
// Set dialog size and position
|
||||||
SetSize(wxSize(FromDIP(400), FromDIP(200)));
|
SetSize(wxSize(FromDIP(400), FromDIP(200)));
|
||||||
wxGetApp().UpdateDlgDarkUI(this);
|
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);
|
if (m_remaining_time_label) m_remaining_time_label->SetLabelText(remaining_time);
|
||||||
|
|
||||||
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThermalPreconditioningDialog::on_timer(wxTimerEvent &event) {
|
void ThermalPreconditioningDialog::on_timer(wxTimerEvent &event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user