mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-23 17:23:14 +08:00
Fix for #8254 - Change of Print/Filament/Printer Settings not detected
This commit is contained in:
parent
881a5dbf37
commit
c4b6381acf
@ -706,6 +706,10 @@ void MainFrame::init_tabpanel()
|
|||||||
// before the MainFrame is fully set up.
|
// before the MainFrame is fully set up.
|
||||||
tab->OnActivate();
|
tab->OnActivate();
|
||||||
m_last_selected_tab = m_tabpanel->GetSelection();
|
m_last_selected_tab = m_tabpanel->GetSelection();
|
||||||
|
#ifdef _MSW_DARK_MODE
|
||||||
|
if (wxGetApp().tabs_as_menu())
|
||||||
|
tab->SetFocus();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
select_tab(size_t(0)); // select Plater
|
select_tab(size_t(0)); // select Plater
|
||||||
@ -2018,8 +2022,13 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
|||||||
m_plater->SetFocus();
|
m_plater->SetFocus();
|
||||||
Layout();
|
Layout();
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
select(false);
|
select(false);
|
||||||
|
#ifdef _MSW_DARK_MODE
|
||||||
|
if (wxGetApp().tabs_as_menu() && tab == 0)
|
||||||
|
m_plater->SetFocus();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// When we run application in ESettingsLayout::New or ESettingsLayout::Dlg mode, tabpanel is hidden from the very beginning
|
// When we run application in ESettingsLayout::New or ESettingsLayout::Dlg mode, tabpanel is hidden from the very beginning
|
||||||
// and as a result Tab::update_changed_tree_ui() function couldn't update m_is_nonsys_values values,
|
// and as a result Tab::update_changed_tree_ui() function couldn't update m_is_nonsys_values values,
|
||||||
|
@ -490,8 +490,11 @@ bool PrintHostQueueDialog::load_user_data(int udt, std::vector<int>& vector)
|
|||||||
auto* app_config = wxGetApp().app_config;
|
auto* app_config = wxGetApp().app_config;
|
||||||
auto hasget = [app_config](const std::string& name, std::vector<int>& vector)->bool {
|
auto hasget = [app_config](const std::string& name, std::vector<int>& vector)->bool {
|
||||||
if (app_config->has(name)) {
|
if (app_config->has(name)) {
|
||||||
vector.push_back(std::stoi(app_config->get(name)));
|
std::string val = app_config->get(name);
|
||||||
return true;
|
if (!val.empty() || val[0]!='\0') {
|
||||||
|
vector.push_back(std::stoi(val));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user