mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
hotkeys: Don't import v4 hotkeys automatically
Hotkey options have shifted some options from context-specific to global hotkeys. This causes conflicts with old hotkey definitions. Instead, we keep the v5 eeschema/pcbnew hotkeys completely separate. Users can still import their custom hotkey files from v4. Fixes: lp:1778408 * https://bugs.launchpad.net/kicad/+bug/1778408
This commit is contained in:
parent
a14b552d89
commit
4af699e919
@ -641,18 +641,15 @@ int ReadHotkeyConfigFile( const wxString& aFilename, struct EDA_HOTKEY_CONFIG* a
|
||||
|
||||
int ReadHotkeyConfig( const wxString& aAppname, struct EDA_HOTKEY_CONFIG* aDescList )
|
||||
{
|
||||
// For Eeschema and Pcbnew frames, we try twice.
|
||||
// The first time, we try to read the new combined file. If it doesn't exist,
|
||||
// we fall back to reading the old, frame-based file
|
||||
// For Eeschema and Pcbnew frames, we read the new combined file.
|
||||
// For other kifaces, we read the frame-based file
|
||||
if( aAppname == LIB_EDIT_FRAME_NAME || aAppname == SCH_EDIT_FRAME_NAME )
|
||||
{
|
||||
if( ReadHotkeyConfigFile( EESCHEMA_HOTKEY_NAME, aDescList ) )
|
||||
return 1;
|
||||
return ReadHotkeyConfigFile( EESCHEMA_HOTKEY_NAME, aDescList );
|
||||
}
|
||||
else if( aAppname == PCB_EDIT_FRAME_NAME || aAppname == FOOTPRINT_EDIT_FRAME_NAME )
|
||||
{
|
||||
if( ReadHotkeyConfigFile( PCBNEW_HOTKEY_NAME, aDescList ) )
|
||||
return 1;
|
||||
return ReadHotkeyConfigFile( PCBNEW_HOTKEY_NAME, aDescList );
|
||||
}
|
||||
|
||||
return ReadHotkeyConfigFile( aAppname, aDescList );
|
||||
|
Loading…
x
Reference in New Issue
Block a user