misc fixes

This commit is contained in:
SoftFever 2023-08-27 11:28:01 +08:00
parent c3d9ace470
commit 012f113eae
4 changed files with 26 additions and 15 deletions

View file

@ -1028,12 +1028,13 @@ void Sidebar::update_all_preset_comboboxes()
PresetBundle &preset_bundle = *wxGetApp().preset_bundle;
const auto print_tech = preset_bundle.printers.get_edited_preset().printer_technology();
bool is_bbl_preset = preset_bundle.is_bbl_vendor();
bool is_bbl_vendor = preset_bundle.is_bbl_vendor();
// Orca:: show device tab based on vendor type
auto p_mainframe = wxGetApp().mainframe;
p_mainframe->show_device(is_bbl_vendor);
p_mainframe->show_device(is_bbl_preset);
if (is_bbl_preset) {
if (is_bbl_vendor) {
//only show connection button for not-BBL printer
connection_btn->Hide();
//only show sync-ams button for BBL printer
@ -1087,6 +1088,8 @@ void Sidebar::update_all_preset_comboboxes()
if (p->combo_printer)
p->combo_printer->update();
p_mainframe->m_tabpanel->SetSelection(p_mainframe->m_tabpanel->GetSelection());
}
void Sidebar::update_presets(Preset::Type preset_type)