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,
|
password,
|
||||||
dbus_interface='org.gnome.GPaste1'
|
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:
|
except subprocess.CalledProcessError as error:
|
||||||
self.notify('Failed to copy password!', body=error.output, error=True)
|
self.notify('Failed to copy password!', body=error.output, error=True)
|
||||||
@ -131,7 +131,7 @@ class SearchPassService(dbus.service.Object):
|
|||||||
if pass_cmd.returncode:
|
if pass_cmd.returncode:
|
||||||
self.notify('Failed to copy password!', error=True)
|
self.notify('Failed to copy password!', error=True)
|
||||||
else:
|
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):
|
def send_password_to_clipboard(self, name):
|
||||||
try:
|
try:
|
||||||
@ -149,7 +149,7 @@ class SearchPassService(dbus.service.Object):
|
|||||||
).Notify(
|
).Notify(
|
||||||
'Pass',
|
'Pass',
|
||||||
0,
|
0,
|
||||||
'',
|
'dialog-password',
|
||||||
message,
|
message,
|
||||||
body,
|
body,
|
||||||
'',
|
'',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user