mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Enabled print host upload notifications
This commit is contained in:
parent
fb9d537b58
commit
645c840e5f
2 changed files with 2 additions and 2 deletions
|
@ -1140,7 +1140,7 @@ void NotificationManager::set_upload_job_notification_percentage(int id, const s
|
||||||
std::string text = PrintHostUploadNotification::get_upload_job_text(id, filename, host);
|
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) {
|
for (std::unique_ptr<PopNotification>& notification : m_pop_notifications) {
|
||||||
if (notification->get_type() == NotificationType::ProgressBar && notification->compare_text(text)) {
|
if (notification->get_type() == NotificationType::PrintHostUpload && notification->compare_text(text)) {
|
||||||
dynamic_cast<PrintHostUploadNotification*>(notification.get())->set_percentage(percentage);
|
dynamic_cast<PrintHostUploadNotification*>(notification.get())->set_percentage(percentage);
|
||||||
wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0);
|
wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0);
|
||||||
// found = true;
|
// found = true;
|
||||||
|
|
|
@ -282,7 +282,7 @@ void PrintHostQueueDialog::append_job(const PrintHostJob &job)
|
||||||
// Both strings are UTF-8 encoded.
|
// Both strings are UTF-8 encoded.
|
||||||
upload_names.emplace_back(job.printhost->get_host(), job.upload_data.upload_path.string());
|
upload_names.emplace_back(job.printhost->get_host(), job.upload_data.upload_path.string());
|
||||||
|
|
||||||
//wxGetApp().notification_manager()->push_upload_job_notification(this, job_list->GetItemCount(), 0, job.upload_data.upload_path.string(), job.printhost->get_host());
|
wxGetApp().notification_manager()->push_upload_job_notification(this, job_list->GetItemCount(), (float)size_i / 1024 / 1024, job.upload_data.upload_path.string(), job.printhost->get_host());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintHostQueueDialog::on_dpi_changed(const wxRect &suggested_rect)
|
void PrintHostQueueDialog::on_dpi_changed(const wxRect &suggested_rect)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue