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-08-19 13:36:18 +0300
committerDavid Kocik <kocikdav@gmail.com>2021-08-19 13:36:31 +0300
commit6d44bde96d6e11e22d34beaa85a9d480ec7c2590 (patch)
tree593b68da288f254d252d879ee3245503754e3c72
parentadfb5b6b4960224c23fec9531765f8d9fdf7ff45 (diff)
Progress notification: fix of wrong method call.
-rw-r--r--src/slic3r/GUI/NotificationManager.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/NotificationManager.hpp b/src/slic3r/GUI/NotificationManager.hpp
index b347c9dfe..2bc9aaaab 100644
--- a/src/slic3r/GUI/NotificationManager.hpp
+++ b/src/slic3r/GUI/NotificationManager.hpp
@@ -391,7 +391,7 @@ private:
{
public:
- ProgressBarNotification(const NotificationData& n, NotificationIDProvider& id_provider, wxEvtHandler* evt_handler, float percentage) : PopNotification(n, id_provider, evt_handler) { set_percentage(percentage); }
+ ProgressBarNotification(const NotificationData& n, NotificationIDProvider& id_provider, wxEvtHandler* evt_handler, float percentage) : PopNotification(n, id_provider, evt_handler) { }
virtual void set_percentage(float percent) { m_percentage = percent; }
protected:
virtual void init() override;
@@ -434,6 +434,7 @@ private:
, m_file_size(filesize)
{
m_has_cancel_button = true;
+ set_percentage(percentage);
}
static std::string get_upload_job_text(int id, const std::string& filename, const std::string& host) { return /*"[" + std::to_string(id) + "] " + */filename + " -> " + host; }
void set_percentage(float percent) override;