mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Check if new value is different from the current one.
In AccountState::setDesktopNotificationsAllowed. Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
f7e9e31bc9
commit
93227ab08b
@ -229,6 +229,10 @@ bool AccountState::isDesktopNotificationsAllowed() const
|
||||
|
||||
void AccountState::setDesktopNotificationsAllowed(bool isAllowed)
|
||||
{
|
||||
if (_isDesktopNotificationsAllowed == isAllowed) {
|
||||
return;
|
||||
}
|
||||
|
||||
_isDesktopNotificationsAllowed = isAllowed;
|
||||
emit desktopNotificationsAllowedChanged();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user