Fixing some compilation warnings

This commit is contained in:
Vojtech Bubnik 2021-03-15 10:36:03 +01:00
parent 95c5763b83
commit ba5e8860cb
3 changed files with 3 additions and 5 deletions

View file

@ -1138,12 +1138,12 @@ void NotificationManager::push_upload_job_notification(wxEvtHandler* evt_handle
void NotificationManager::set_upload_job_notification_percentage(int id, const std::string& filename, const std::string& host, float percentage)
{
std::string text = PrintHostUploadNotification::get_upload_job_text(id, filename, host);
bool found = false;
// bool found = false;
for (std::unique_ptr<PopNotification>& notification : m_pop_notifications) {
if (notification->get_type() == NotificationType::ProgressBar && notification->compare_text(text)) {
dynamic_cast<PrintHostUploadNotification*>(notification.get())->set_percentage(percentage);
wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0);
found = true;
// found = true;
}
}
/*