FIX:fix crash for no valid filaments

jira: none
Change-Id: I9433da99d2ad355f088917e88350c5fd36bd1aea
(cherry picked from commit 52442fa6d58d4d9204c386ec1a2ccfedf7115151)
This commit is contained in:
zhou.xu
2025-02-05 14:25:38 +08:00
committed by Noisyfox
parent 552c674483
commit 7d3acd75ae
7 changed files with 37 additions and 5 deletions

View File

@@ -542,6 +542,8 @@ public:
enum class PrinterWarningType {
NOT_CONNECTED,
INCONSISTENT,
UNINSTALL_FILAMENT,
EMPTY_FILAMENT
};
void pop_warning_and_go_to_device_page(wxString printer_name, PrinterWarningType type, const wxString &title);
bool check_printer_initialized(MachineObject *obj, bool only_warning = false);