mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed localization issue of the "Removable media unmounted" message.
Generalized the Slic3r::show_info() function to std::strings and const char*
This commit is contained in:
parent
192bdffb3f
commit
c9a75bb70a
3 changed files with 15 additions and 7 deletions
|
@ -5199,11 +5199,10 @@ void Plater::drive_ejected_callback()
|
|||
if (RemovableDriveManager::get_instance().get_did_eject())
|
||||
{
|
||||
RemovableDriveManager::get_instance().set_did_eject(false);
|
||||
wxString message = wxString::Format(
|
||||
_(L("Unmounting successful. The device %s(%s) can now be safely removed from the computer.")),
|
||||
RemovableDriveManager::get_instance().get_ejected_name(),
|
||||
RemovableDriveManager::get_instance().get_ejected_path());
|
||||
wxMessageBox(message);
|
||||
show_info(this,
|
||||
(boost::format(_utf8(L("Unmounting successful. The device %s(%s) can now be safely removed from the computer.")))
|
||||
% RemovableDriveManager::get_instance().get_ejected_name()
|
||||
% RemovableDriveManager::get_instance().get_ejected_path()).str());
|
||||
}
|
||||
p->show_action_buttons(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue