FIX:fixed incorrect disabled state of filaments material

Change-Id: I168131d90f4b7e987d026808366a08895e1b1524
This commit is contained in:
tao wang authored and Lane.Wei committed 2023-07-07 17:25:51 +08:00
1 parent e1199884d8
commit 81cb240dcc
2 files changed
+19 -4

No files matched your search

+12 -4
View File
@@ -1735,8 +1735,11 @@ void SelectMachineDialog::prepare_mode()
Fit();
}
for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) {
it->second->item->enable();
if (m_print_page_mode != PrintPageModePrepare) {
m_print_page_mode = PrintPageModePrepare;
for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) {
it->second->item->enable();
}
}
}
@@ -1752,13 +1755,18 @@ void SelectMachineDialog::sending_mode()
Fit();
}
for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) {
it->second->item->disable();
if (m_print_page_mode != PrintPageModeSending) {
m_print_page_mode = PrintPageModeSending;
for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) {
it->second->item->disable();
}
}
}
void SelectMachineDialog::finish_mode()
{
m_print_page_mode = PrintPageModeFinish;
m_is_in_sending_mode = false;
m_simplebook->SetSelection(2);
Layout();