mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Added various manifests,
added auto generation of includes and manifests from version and build variables, resurrected SLIC3R_LOGLEVEL env var.
This commit is contained in:
parent
9f2cd347e3
commit
96e035b2f8
11 changed files with 100 additions and 26 deletions
|
@ -116,10 +116,15 @@ void MainFrame::init_tabpanel()
|
|||
auto panel = m_tabpanel->GetCurrentPage();
|
||||
// panel->OnActivate(); if panel->can('OnActivate');
|
||||
|
||||
std::vector<std::string> tab_names = { "print", "filament", "printer" };
|
||||
for (auto& tab_name : tab_names) {
|
||||
if (tab_name == panel->GetName())
|
||||
m_options_tabs.at(tab_name)->OnActivate();
|
||||
for (auto& tab_name : { "print", "filament", "printer" }) {
|
||||
if (tab_name == panel->GetName()) {
|
||||
// On GTK, the wxEVT_NOTEBOOK_PAGE_CHANGED event is triggered
|
||||
// before the MainFrame is fully set up.
|
||||
auto it = m_options_tabs.find(tab_name);
|
||||
assert(it != m_options_tabs.end());
|
||||
if (it != m_options_tabs.end())
|
||||
it->second->OnActivate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue