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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kocik <kocikdav@gmail.com>2021-03-23 16:46:55 +0300
committerDavid Kocik <kocikdav@gmail.com>2021-04-20 10:18:50 +0300
commit9118de4e3ce0d14451eadf816117ddc333a4327c (patch)
treeb8bbddda98f47c4e456906e22ccc1aa9f355717a /src/slic3r
parent78e61eddf80830749de2d472b75a7dbe3043e2bd (diff)
Upload notification text fix
Diffstat (limited to 'src/slic3r')
-rw-r--r--src/slic3r/GUI/NotificationManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp
index 533bcb8dc..6c5918fde 100644
--- a/src/slic3r/GUI/NotificationManager.cpp
+++ b/src/slic3r/GUI/NotificationManager.cpp
@@ -859,7 +859,7 @@ void NotificationManager::PrintHostUploadNotification::render_bar(ImGuiWrapper&
case Slic3r::GUI::NotificationManager::PrintHostUploadNotification::UploadJobState::PB_PROGRESS:
{
ProgressBarNotification::render_bar(imgui, win_size_x, win_size_y, win_pos_x, win_pos_y);
- float uploaded = m_file_size / 100 * m_percentage;
+ float uploaded = m_file_size * m_percentage;
std::stringstream stream;
stream << std::fixed << std::setprecision(2) << (int)(m_percentage * 100) << "% - " << uploaded << " of " << m_file_size << "MB uploaded";
text = stream.str();