mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH: add more logs for debugging panel switch
Change-Id: If35e00e2b70223ce8bda62d0b2da7f072eb8c1e4
This commit is contained in:
parent
ca2f05e60b
commit
795c1851be
1 changed files with 4 additions and 0 deletions
|
@ -5023,6 +5023,7 @@ void Plater::priv::set_current_panel(wxPanel* panel, bool no_slice)
|
||||||
if (std::find(panels.begin(), panels.end(), panel) == panels.end())
|
if (std::find(panels.begin(), panels.end(), panel) == panels.end())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": current_panel %1%, new_panel %2%")%current_panel%panel;
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
bool force_render = (current_panel != nullptr);
|
bool force_render = (current_panel != nullptr);
|
||||||
#endif // __WXMAC__
|
#endif // __WXMAC__
|
||||||
|
@ -5103,6 +5104,7 @@ void Plater::priv::set_current_panel(wxPanel* panel, bool no_slice)
|
||||||
if (!q->only_gcode_mode() && (current_panel == preview) && (wxGetApp().is_editor())) {
|
if (!q->only_gcode_mode() && (current_panel == preview) && (wxGetApp().is_editor())) {
|
||||||
do_reslice();
|
do_reslice();
|
||||||
}
|
}
|
||||||
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": the same panel, exit");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5263,6 +5265,8 @@ void Plater::priv::set_current_panel(wxPanel* panel, bool no_slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
current_panel->SetFocusFromKbd();
|
current_panel->SetFocusFromKbd();
|
||||||
|
|
||||||
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": successfully, exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
// BBS
|
// BBS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue