mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
#32 use remove/add to replace hotkey
possible workaround for "edited hotkey" not working
This commit is contained in:
committed by
Mat Sutcliffe
parent
7981815ddf
commit
637bae5bb6
@@ -131,9 +131,13 @@ namespace BlackGui
|
||||
|
||||
void CSettingsHotkeyComponent::updateHotkeyInSettings(const CActionHotkey &oldValue, const CActionHotkey &newValue)
|
||||
{
|
||||
CActionHotkeyList actionHotkeyList(m_actionHotkeys.getThreadLocal());
|
||||
actionHotkeyList.replace(oldValue, newValue);
|
||||
m_actionHotkeys.set(actionHotkeyList);
|
||||
//! \todo KB 2020-06 since there are many users reporting issues with replacing hotkey we use remove/add
|
||||
this->removeHotkeyFromSettings(oldValue);
|
||||
this->addHotkeyToSettings(newValue);
|
||||
|
||||
// CActionHotkeyList actionHotkeyList(m_actionHotkeys.getThreadLocal());
|
||||
// actionHotkeyList.replace(oldValue, newValue);
|
||||
// m_actionHotkeys.set(actionHotkeyList);
|
||||
}
|
||||
|
||||
void CSettingsHotkeyComponent::removeHotkeyFromSettings(const CActionHotkey &actionHotkey)
|
||||
|
||||
Reference in New Issue
Block a user