FIX: Fix focus stealing from app when filament changes
At every filament related event, the old code would try to set the keyboard focus to the "Device" tab, leading to a number of, either, focus stealing events, or notifications if the desktop has focus stealing prevention (like GNOME). Disable the focus setting on Linux to prevent that focus stealing. Closes: https://github.com/bambulab/BambuStudio/issues/3046
This commit is contained in:
parent
bea2746f1a
commit
cd8a9786a8
|
@ -1110,10 +1110,10 @@ void MainFrame::init_tabpanel()
|
||||||
m_topbar->DisableUndoRedoItems();
|
m_topbar->DisableUndoRedoItems();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef __WXGTK__
|
||||||
if (panel)
|
if (panel)
|
||||||
panel->SetFocus();
|
panel->SetFocus();
|
||||||
|
#endif
|
||||||
/*switch (sel) {
|
/*switch (sel) {
|
||||||
case TabPosition::tpHome:
|
case TabPosition::tpHome:
|
||||||
show_option(false);
|
show_option(false);
|
||||||
|
|
Loading…
Reference in New Issue