ENH: don't show extruder index when only has one
As title Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I752a43ccda1711a13f2fd152e9b7341195450cb0
This commit is contained in:
parent
3d3cda5e45
commit
7a5771419a
1 changed files with 1 additions and 1 deletions
|
@ -3096,7 +3096,7 @@ void TabPrinter::build_unregular_pages(bool from_initial_build/* = false*/)
|
||||||
// Build missed extruder pages
|
// Build missed extruder pages
|
||||||
//for (auto extruder_idx = m_extruders_count_old; extruder_idx < m_extruders_count; ++extruder_idx)
|
//for (auto extruder_idx = m_extruders_count_old; extruder_idx < m_extruders_count; ++extruder_idx)
|
||||||
auto extruder_idx = 0;
|
auto extruder_idx = 0;
|
||||||
const wxString& page_name = wxString::Format("Extruder %d", int(extruder_idx + 1));
|
const wxString& page_name = (m_extruders_count > 1) ? wxString::Format("Extruder %d", int(extruder_idx + 1)) : wxString::Format("Extruder");
|
||||||
bool page_exist = false;
|
bool page_exist = false;
|
||||||
for (auto page_temp : m_pages) {
|
for (auto page_temp : m_pages) {
|
||||||
if (page_temp->title() == page_name) {
|
if (page_temp->title() == page_name) {
|
||||||
|
|
Loading…
Reference in a new issue