Progress notification: fix of wrong method call.
This commit is contained in:
parent
adfb5b6b49
commit
6d44bde96d
1 changed files with 2 additions and 1 deletions
|
@ -391,7 +391,7 @@ private:
|
||||||
{
|
{
|
||||||
public:
|
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; }
|
virtual void set_percentage(float percent) { m_percentage = percent; }
|
||||||
protected:
|
protected:
|
||||||
virtual void init() override;
|
virtual void init() override;
|
||||||
|
@ -434,6 +434,7 @@ private:
|
||||||
, m_file_size(filesize)
|
, m_file_size(filesize)
|
||||||
{
|
{
|
||||||
m_has_cancel_button = true;
|
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; }
|
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;
|
void set_percentage(float percent) override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue