mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-31 13:57:07 +00:00
fix translation not correct bug.
This commit is contained in:
@@ -4948,8 +4948,8 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||||||
|
|
||||||
if (is_snapmaker_u1) {
|
if (is_snapmaker_u1) {
|
||||||
if (q->get_notification_manager()) {
|
if (q->get_notification_manager()) {
|
||||||
std::string warning_text = _u8L("Warning: Printing by object with caution. This function may cause the print head to collide with printed parts during switching.");
|
wxString warning_text = _L("Printing by object with caution. This function may cause the print head to collide with printed parts during switching.");
|
||||||
q->get_notification_manager()->push_plater_error_notification(warning_text);
|
q->get_notification_manager()->push_plater_error_notification(warning_text.ToStdString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1567,16 +1567,16 @@ void Tab::on_value_change(const std::string& opt_key, const boost::any& value)
|
|||||||
if (is_snapmaker_u1) {
|
if (is_snapmaker_u1) {
|
||||||
// Show red warning notification
|
// Show red warning notification
|
||||||
if (wxGetApp().plater() && wxGetApp().plater()->get_notification_manager()) {
|
if (wxGetApp().plater() && wxGetApp().plater()->get_notification_manager()) {
|
||||||
std::string warning_text = _u8L("Warning: Printing by object with caution. This function may cause the print head to collide with printed parts during switching.");
|
wxString warning_text = _L("Printing by object with caution. This function may cause the print head to collide with printed parts during switching.");
|
||||||
wxGetApp().plater()->get_notification_manager()->push_plater_error_notification(warning_text);
|
wxGetApp().plater()->get_notification_manager()->push_plater_error_notification(warning_text.ToStdString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Clear warning when switching away from ByObject
|
// Clear warning when switching away from ByObject
|
||||||
if (wxGetApp().plater() && wxGetApp().plater()->get_notification_manager()) {
|
if (wxGetApp().plater() && wxGetApp().plater()->get_notification_manager()) {
|
||||||
std::string warning_text = _u8L("Warning: Printing by object with caution. This function may cause the print head to collide with printed parts during switching.");
|
wxString warning_text = _L("Printing by object with caution. This function may cause the print head to collide with printed parts during switching.");
|
||||||
wxGetApp().plater()->get_notification_manager()->close_plater_error_notification(warning_text);
|
wxGetApp().plater()->get_notification_manager()->close_plater_error_notification(warning_text.ToStdString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user