mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:47:03 +08:00
Fix hotkey settings not loaded during app start
CInputManager is listening for hotkey settings changes, but it never loaded the current state during construction and kept an empty setting. ref T318
This commit is contained in:
committed by
Klaus Basan
parent
be14be1e7c
commit
2856dad280
@@ -31,6 +31,7 @@ namespace BlackCore
|
||||
{
|
||||
connect(m_keyboard.get(), &IKeyboard::keyCombinationChanged, this, &CInputManager::ps_processKeyCombinationChanged, Qt::QueuedConnection);
|
||||
connect(m_joystick.get(), &IJoystick::buttonCombinationChanged, this, &CInputManager::ps_processButtonCombinationChanged, Qt::QueuedConnection);
|
||||
reloadHotkeySettings();
|
||||
}
|
||||
|
||||
CInputManager *CInputManager::instance()
|
||||
@@ -69,7 +70,7 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
void CInputManager::onChangedHotkeySettings()
|
||||
void CInputManager::reloadHotkeySettings()
|
||||
{
|
||||
m_configuredActions.clear();
|
||||
for (const CActionHotkey &actionHotkey : m_actionHotkeys.getThreadLocal())
|
||||
|
||||
Reference in New Issue
Block a user