mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-19 15:19:06 +08:00
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();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef __WXGTK__
|
||||
if (panel)
|
||||
panel->SetFocus();
|
||||
|
||||
#endif
|
||||
/*switch (sel) {
|
||||
case TabPosition::tpHome:
|
||||
show_option(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user