mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:36:09 +00:00
UI: HotKeyManager: Simplify initialize()
This commit is contained in:
parent
8945aed366
commit
8d64a6ac0c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user