Fixed progress percentage passed to notification

This commit is contained in:
David Kocik 2021-03-15 16:03:51 +01:00
parent 888f331778
commit 84a333e4ed

View File

@ -354,7 +354,7 @@ void PrintHostQueueDialog::on_progress(Event &evt)
wxVariant nm, hst; wxVariant nm, hst;
job_list->GetValue(nm, evt.job_id, COL_FILENAME); job_list->GetValue(nm, evt.job_id, COL_FILENAME);
job_list->GetValue(hst, evt.job_id, COL_HOST); job_list->GetValue(hst, evt.job_id, COL_HOST);
wxGetApp().notification_manager()->set_upload_job_notification_percentage(evt.job_id + 1, boost::nowide::narrow(nm.GetString()), boost::nowide::narrow(hst.GetString()), 100 / evt.progress); wxGetApp().notification_manager()->set_upload_job_notification_percentage(evt.job_id + 1, boost::nowide::narrow(nm.GetString()), boost::nowide::narrow(hst.GetString()), evt.progress / 100.f);
} }
} }