diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 0c80266bdd..1abbf6fabe 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -229,6 +229,10 @@ bool AccountState::isDesktopNotificationsAllowed() const void AccountState::setDesktopNotificationsAllowed(bool isAllowed) { + if (_isDesktopNotificationsAllowed == isAllowed) { + return; + } + _isDesktopNotificationsAllowed = isAllowed; emit desktopNotificationsAllowedChanged(); }