Don't allow view preset switcher on non-front window.
This commit is contained in:
parent
6450ee2f2c
commit
2f0b8eb5e9
|
@ -85,7 +85,7 @@ bool PCB_BASE_EDIT_FRAME::TryBefore( wxEvent& aEvent )
|
||||||
|
|
||||||
if( !s_switcherShown && wxGetKeyState( WXK_RAW_CONTROL ) && wxGetKeyState( WXK_TAB ) )
|
if( !s_switcherShown && wxGetKeyState( WXK_RAW_CONTROL ) && wxGetKeyState( WXK_TAB ) )
|
||||||
{
|
{
|
||||||
if( m_appearancePanel )
|
if( m_appearancePanel && this->IsActive() )
|
||||||
{
|
{
|
||||||
const wxArrayString& mru = m_appearancePanel->GetLayerPresetsMRU();
|
const wxArrayString& mru = m_appearancePanel->GetLayerPresetsMRU();
|
||||||
EDA_VIEW_SWITCHER switcher( this, mru );
|
EDA_VIEW_SWITCHER switcher( this, mru );
|
||||||
|
|
Loading…
Reference in New Issue