Don't disable error notifications with environment variable

This commit is contained in:
Layerex 2022-09-28 11:16:45 +03:00
parent d302782073
commit 62b63dc3e1
No known key found for this signature in database
GPG Key ID: 21AE9A379DE6B677

View File

@ -222,7 +222,7 @@ class SearchPassService(dbus.service.Object):
self.notify("Failed to copy password or field!", body=str(e), error=True)
def notify(self, message, body="", error=False):
if not self.disable_notifications:
if error or not self.disable_notifications:
try:
self.session_bus.get_object(
"org.freedesktop.Notifications", "/org/freedesktop/Notifications"