UI: HotKeyManager: Simplify initialize()

This commit is contained in:
Nodir Temirkhodjaev 2024-04-05 14:09:53 +03:00
parent 8945aed366
commit 8d64a6ac0c

View File

@ -24,8 +24,10 @@ HotKeyManager::HotKeyManager(QObject *parent) : QObject(parent) { }
void HotKeyManager::initialize(bool enabled, bool global)
{
if (m_enabled == enabled && m_global == global && !checkShortcutsChanged())
return;
if (m_enabled == enabled && m_global == global) {
if (!checkShortcutsChanged())
return;
}
m_enabled = enabled;
m_global = global;