Merge pull request #11 from dmo60/improve-notifications
Improve notifications style
This commit is contained in:
commit
dd1bdcc062
@ -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,
|
||||
'',
|
||||
|
Loading…
x
Reference in New Issue
Block a user