mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-16 19:06:01 +08:00
ENH: add more logs for debugging panel switch
Change-Id: If35e00e2b70223ce8bda62d0b2da7f072eb8c1e4
This commit is contained in:
parent
ca2f05e60b
commit
795c1851be
@ -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…
x
Reference in New Issue
Block a user