diff options
author | David Kocik <kocikdav@gmail.com> | 2022-09-08 14:36:56 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2022-09-08 14:36:56 +0300 |
commit | b65fb3250eb946892b9f8ece8eed0c4cc1e5f287 (patch) | |
tree | d017ca40cfd7ad35edec158a88b75b27d7a22403 | |
parent | 3ab919887884c454027cce9caaaf5bdac5bd9f9b (diff) |
improved notification text when uploading to inner folderdk_mini_put
-rw-r--r-- | src/slic3r/GUI/NotificationManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index 6e9bc267f..09e2ec7cd 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -1609,7 +1609,10 @@ void NotificationManager::push_upload_job_notification(int id, float filesize, return; } } - std::string text = PrintHostUploadNotification::get_upload_job_text(id, filename, host); + // filename is created from boost::filesystem::path.string() which if created by path / "file" return \\ as folder division. But could also contain / as folder division. Lets unite this into "/" only. + std::string correct_filename(filename); + std::replace(correct_filename.begin(), correct_filename.end(), '\\', '/'); + std::string text = PrintHostUploadNotification::get_upload_job_text(id, correct_filename, host); NotificationData data{ NotificationType::PrintHostUpload, NotificationLevel::ProgressBarNotificationLevel, 10, text }; push_notification_data(std::make_unique<NotificationManager::PrintHostUploadNotification>(data, m_id_provider, m_evt_handler, 0, id, filesize), 0); } |