Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2020-02-29 14:03:07 +0300
committerbubnikv <bubnikv@gmail.com>2020-02-29 14:03:07 +0300
commitc9a75bb70a2c1c88e72e0dd55961b5701431f0a6 (patch)
tree69460d540e456ec5531f58beb7774c25275262fe /src/slic3r/GUI/Plater.cpp
parent192bdffb3f513018c0ebfe74086d421f71e76b0c (diff)
Fixed localization issue of the "Removable media unmounted" message.
Generalized the Slic3r::show_info() function to std::strings and const char*
Diffstat (limited to 'src/slic3r/GUI/Plater.cpp')
-rw-r--r--src/slic3r/GUI/Plater.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
index 1e13bf3af..0ebad64d1 100644
--- a/src/slic3r/GUI/Plater.cpp
+++ b/src/slic3r/GUI/Plater.cpp
@@ -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);
}