From 3f9c74c86e217a6b96d42c70555d296f38788b9f Mon Sep 17 00:00:00 2001 From: Stone Li Date: Fri, 23 Dec 2022 16:22:14 +0800 Subject: [PATCH] ENH: reorder the judgement when sending print job Change-Id: I1a33bba1d33388a61d12c00a11e84c2ee5c00287 Signed-off-by: Stone Li --- src/slic3r/GUI/SendToPrinter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/SendToPrinter.cpp b/src/slic3r/GUI/SendToPrinter.cpp index 92f439571..b5fa7ba4a 100644 --- a/src/slic3r/GUI/SendToPrinter.cpp +++ b/src/slic3r/GUI/SendToPrinter.cpp @@ -892,6 +892,12 @@ void SendToPrinterDialog::update_show_status() reset_timeout(); + bool is_suppt = obj_->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD); + if (!is_suppt) { + show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard); + return; + } + // reading done if (obj_->is_in_upgrading()) { show_status(PrintDialogStatus::PrintStatusInUpgrading); @@ -914,12 +920,6 @@ void SendToPrinterDialog::update_show_status() show_status(PrintDialogStatus::PrintStatusNotOnTheSameLAN); return; } - - bool is_suppt = obj_->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD); - if (!is_suppt) { - show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard); - return; - } show_status(PrintDialogStatus::PrintStatusReadingFinished); }