Improve notifications
This commit is contained in:
parent
efe14098b3
commit
d207cf78eb
@ -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))
|
||||||
else:
|
else:
|
||||||
self.notify('Failed to copy password', body=error, error=True)
|
self.notify('Failed to copy password', body=error, error=True)
|
||||||
|
|
||||||
@ -130,7 +130,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:
|
||||||
@ -148,7 +148,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