mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Another attempt to fix copyed hotkeys by updating the identifier
* check on name OR id * remote keys not updated, but lenient check on local machine * Remark: Sometimes copied hotkeys d not work
This commit is contained in:
committed by
Mat Sutcliffe
parent
eb1427e55f
commit
d8a730302a
@@ -38,11 +38,26 @@ namespace BlackMisc
|
||||
m_combination = combination;
|
||||
}
|
||||
|
||||
bool CActionHotkey::isForSameMachine(const CActionHotkey &key) const
|
||||
bool CActionHotkey::isForSameMachineId(const CActionHotkey &key) const
|
||||
{
|
||||
return this->getApplicableMachine().hasSameMachineId(key.getApplicableMachine());
|
||||
}
|
||||
|
||||
bool CActionHotkey::isForSameMachineName(const CActionHotkey &key) const
|
||||
{
|
||||
return this->getApplicableMachine().hasSameMachineName(key.getApplicableMachine());
|
||||
}
|
||||
|
||||
bool CActionHotkey::isForSameMachine(const CActionHotkey &key) const
|
||||
{
|
||||
return this->isForSameMachineId(key) || this->isForSameMachineName(key);
|
||||
}
|
||||
|
||||
void CActionHotkey::updateToCurrentMachine()
|
||||
{
|
||||
m_identifier.updateToCurrentMachine();
|
||||
}
|
||||
|
||||
void CActionHotkey::setObject(const CActionHotkey &obj)
|
||||
{
|
||||
m_action = obj.m_action;
|
||||
|
||||
Reference in New Issue
Block a user