Fix for SPE-1366(https://dev.prusa3d.com/browse/SPE-1366) - InGui Search doesn't work after switch to settings tab
This commit is contained in:
parent
633ce8aa21
commit
cf417b4a73
1 changed files with 2 additions and 0 deletions
|
@ -5148,6 +5148,8 @@ bool GLCanvas3D::_init_main_toolbar()
|
||||||
item.left.toggable = true;
|
item.left.toggable = true;
|
||||||
item.left.render_callback = [this](float left, float right, float, float) {
|
item.left.render_callback = [this](float left, float right, float, float) {
|
||||||
if (m_canvas != nullptr) {
|
if (m_canvas != nullptr) {
|
||||||
|
if (!m_canvas->HasFocus())
|
||||||
|
m_canvas->SetFocus();
|
||||||
if (_render_search_list(0.5f * (left + right)))
|
if (_render_search_list(0.5f * (left + right)))
|
||||||
_deactivate_search_toolbar_item();
|
_deactivate_search_toolbar_item();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue