mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-12-01 14:58:47 +03:00
Fix share keys setting not working
This commit is contained in:
parent
e537ece88d
commit
1ab20e0ee3
1 changed files with 6 additions and 0 deletions
|
@ -299,6 +299,7 @@ UserSettings::setShareKeysWithTrustedUsers(bool shareKeys)
|
||||||
{
|
{
|
||||||
if (shareKeys == shareKeysWithTrustedUsers_)
|
if (shareKeys == shareKeysWithTrustedUsers_)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
shareKeysWithTrustedUsers_ = shareKeys;
|
shareKeysWithTrustedUsers_ = shareKeys;
|
||||||
emit shareKeysWithTrustedUsersChanged(shareKeys);
|
emit shareKeysWithTrustedUsersChanged(shareKeys);
|
||||||
save();
|
save();
|
||||||
|
@ -736,6 +737,10 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
|
||||||
emit decryptSidebarChanged();
|
emit decryptSidebarChanged();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(shareKeysWithTrustedUsers_, &Toggle::toggled, this, [this](bool disabled) {
|
||||||
|
settings_->setShareKeysWithTrustedUsers(!disabled);
|
||||||
|
});
|
||||||
|
|
||||||
connect(avatarCircles_, &Toggle::toggled, this, [this](bool disabled) {
|
connect(avatarCircles_, &Toggle::toggled, this, [this](bool disabled) {
|
||||||
settings_->setAvatarCircles(!disabled);
|
settings_->setAvatarCircles(!disabled);
|
||||||
});
|
});
|
||||||
|
@ -810,6 +815,7 @@ UserSettingsPage::showEvent(QShowEvent *)
|
||||||
startInTrayToggle_->setState(!settings_->startInTray());
|
startInTrayToggle_->setState(!settings_->startInTray());
|
||||||
groupViewToggle_->setState(!settings_->groupView());
|
groupViewToggle_->setState(!settings_->groupView());
|
||||||
decryptSidebar_->setState(!settings_->decryptSidebar());
|
decryptSidebar_->setState(!settings_->decryptSidebar());
|
||||||
|
shareKeysWithTrustedUsers_->setState(!settings_->shareKeysWithTrustedUsers());
|
||||||
avatarCircles_->setState(!settings_->avatarCircles());
|
avatarCircles_->setState(!settings_->avatarCircles());
|
||||||
typingNotifications_->setState(!settings_->typingNotifications());
|
typingNotifications_->setState(!settings_->typingNotifications());
|
||||||
sortByImportance_->setState(!settings_->sortByImportance());
|
sortByImportance_->setState(!settings_->sortByImportance());
|
||||||
|
|
Loading…
Reference in a new issue