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:
Bastien Nocera 2025-01-11 18:56:51 +01:00 committed by Lane.Wei
parent bea2746f1a
commit cd8a9786a8
1 changed files with 2 additions and 2 deletions

View File

@ -1110,10 +1110,10 @@ void MainFrame::init_tabpanel()
m_topbar->DisableUndoRedoItems();
}
#endif
#ifndef __WXGTK__
if (panel)
panel->SetFocus();
#endif
/*switch (sel) {
case TabPosition::tpHome:
show_option(false);