From 83b6feb394ced1f3b17267205860960e4e1eebe7 Mon Sep 17 00:00:00 2001 From: Stone Li Date: Sat, 26 Nov 2022 10:56:18 +0800 Subject: [PATCH] ENH: can not send print task when printer need force upgrading Change-Id: I3be5c9c54b3a5fb448b1e96901df8aa7ffbffbd8 --- src/slic3r/GUI/SelectMachine.cpp | 10 ++++++++++ src/slic3r/GUI/SelectMachine.hpp | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 534934cc061..183ec1ac254 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -1807,6 +1807,11 @@ void SelectMachineDialog::show_status(PrintDialogStatus status, std::vectorupgrade_force_upgrade) { + show_status(PrintDialogStatus::PrintStatusNeedForceUpgrading); + return; + } + if (obj_->is_in_upgrading()) { show_status(PrintDialogStatus::PrintStatusInUpgrading); return; diff --git a/src/slic3r/GUI/SelectMachine.hpp b/src/slic3r/GUI/SelectMachine.hpp index c40bbe9272f..773105d0651 100644 --- a/src/slic3r/GUI/SelectMachine.hpp +++ b/src/slic3r/GUI/SelectMachine.hpp @@ -255,7 +255,8 @@ enum PrintDialogStatus { PrintStatusLanModeNoSdcard, PrintStatusNoSdcard, PrintStatusTimelapseNoSdcard, - PrintStatusNotOnTheSameLAN + PrintStatusNotOnTheSameLAN, + PrintStatusNeedForceUpgrading }; std::string get_print_status_info(PrintDialogStatus status);