mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix support / media shortcuts.
This commit is contained in:
@@ -427,7 +427,6 @@ void Manager::set(const QString &keys, Command command, bool replace) {
|
||||
} else if (replace) {
|
||||
unregister(std::exchange(i->second, std::move(shortcut)));
|
||||
} else {
|
||||
shortcut = nullptr;
|
||||
id = i->second->id();
|
||||
}
|
||||
if (!id) {
|
||||
@@ -435,10 +434,10 @@ void Manager::set(const QString &keys, Command command, bool replace) {
|
||||
return;
|
||||
}
|
||||
_commandByShortcutId.emplace(id, command);
|
||||
if (shortcut && isMediaShortcut) {
|
||||
if (!shortcut && isMediaShortcut) {
|
||||
_mediaShortcuts.emplace(i->second.get());
|
||||
}
|
||||
if (shortcut && isSupportShortcut) {
|
||||
if (!shortcut && isSupportShortcut) {
|
||||
_supportShortcuts.emplace(i->second.get());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user