mirror of
https://github.com/tnodir/fort
synced 2024-11-15 14:26:38 +00:00
UI: Update tray menu on password unlock changed.
This commit is contained in:
parent
0583b8de84
commit
67ac435655
@ -304,7 +304,8 @@ void FortManager::setupTrayIcon()
|
||||
connect(m_trayIcon, &QSystemTrayIcon::messageClicked, this, &FortManager::onTrayMessageClicked);
|
||||
|
||||
connect(this, &FortManager::optWindowChanged, this, &FortManager::updateTrayMenuFlags);
|
||||
connect(settings(), &FortSettings::passwordUnlocked, this, &FortManager::updateTrayMenuFlags);
|
||||
connect(settings(), &FortSettings::passwordUnlockChanged, this,
|
||||
&FortManager::updateTrayMenuFlags);
|
||||
|
||||
connect(confManager(), &ConfManager::confSaved, this, &FortManager::updateTrayMenu);
|
||||
connect(confManager(), &ConfManager::alertedAppAdded, this, [&] { updateTrayIcon(true); });
|
||||
|
@ -236,10 +236,10 @@ void FortSettings::setPasswordChecked(bool checked, int unlockType)
|
||||
return;
|
||||
|
||||
m_passwordChecked = checked;
|
||||
m_passwordUnlockType = unlockType;
|
||||
|
||||
if (m_passwordUnlockType != 0) {
|
||||
emit passwordUnlocked();
|
||||
if (m_passwordUnlockType != unlockType) {
|
||||
m_passwordUnlockType = unlockType;
|
||||
emit passwordUnlockChanged();
|
||||
}
|
||||
|
||||
emit iniChanged();
|
||||
|
@ -232,7 +232,7 @@ public:
|
||||
signals:
|
||||
void iniChanged();
|
||||
void errorMessageChanged();
|
||||
void passwordUnlocked();
|
||||
void passwordUnlockChanged();
|
||||
|
||||
public slots:
|
||||
void setupGlobal();
|
||||
|
Loading…
Reference in New Issue
Block a user