Merge pull request #11 from dmo60/improve-notifications

Improve notifications style
This commit is contained in:
jle64 2019-01-15 17:47:12 +01:00 committed by GitHub
commit dd1bdcc062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ class SearchPassService(dbus.service.Object):
password,
dbus_interface='org.gnome.GPaste1'
)
self.notify('Password {} copied to clipboard.'.format(name))
self.notify('Copied password to clipboard:', body='<b>{}</b>'.format(name))
except subprocess.CalledProcessError as error:
self.notify('Failed to copy password!', body=error.output, error=True)
@ -131,7 +131,7 @@ class SearchPassService(dbus.service.Object):
if pass_cmd.returncode:
self.notify('Failed to copy password!', error=True)
else:
self.notify('Password {} copied to clipboard.'.format(name))
self.notify('Copied password to clipboard:', body='<b>{}</b>'.format(name))
def send_password_to_clipboard(self, name):
try:
@ -149,7 +149,7 @@ class SearchPassService(dbus.service.Object):
).Notify(
'Pass',
0,
'',
'dialog-password',
message,
body,
'',