Don't disable error notifications with environment variable
This commit is contained in:
parent
d302782073
commit
62b63dc3e1
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user