From 072db17e25292c249d0782c7f8f3b66a45baae01 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 22 Jul 2024 15:42:27 +0800 Subject: [PATCH] FIX:remove custom logo for third printer jira: STUDIO-7627 Change-Id: I6b3bbf321b0b8049fb10c48d5348d69f706cfb0e --- src/slic3r/GUI/Tab.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 38fd11062..e7f2db460 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -5501,8 +5501,8 @@ wxSizer* TabPrinter::create_bed_shape_widget(wxWindow* parent) *m_config->option("bed_custom_model") , !is_configed_by_BBL); if (dlg.ShowModal() == wxID_OK) { if (dlg.get_valid()) { + std::string custom_texture = dlg.get_custom_texture(); if (is_configed_by_BBL) { - std::string custom_texture = dlg.get_custom_texture(); {//save to user_bbl_svg_list if (!wxGetApp().app_config->has_section("user_bbl_svg_list")) { std::map data; @@ -5517,12 +5517,8 @@ wxSizer* TabPrinter::create_bed_shape_widget(wxWindow* parent) } load_key_value("bed_custom_texture", custom_texture); update_changed_ui(); - if (custom_texture == "") { - wxGetApp().plater()->get_partplate_list().update_logo_texture_filename(""); - } } else { const std::vector &shape = dlg.get_shape(); - const std::string & custom_texture = dlg.get_custom_texture(); const std::string & custom_model = dlg.get_custom_model(); if (!shape.empty()) { load_key_value("printable_area", shape); @@ -5531,6 +5527,10 @@ wxSizer* TabPrinter::create_bed_shape_widget(wxWindow* parent) update_changed_ui(); } } + if (custom_texture == "") { + wxGetApp().plater()->get_partplate_list().update_logo_texture_filename(""); + } + } else { show_error(m_parent, _L("Invalid input.")); }