fix TB: button_text is now always set
This commit is contained in:
parent
a2b7c819a1
commit
ef6ead5d84
|
@ -130,6 +130,7 @@ class DesktopNotification:
|
||||||
if not text:
|
if not text:
|
||||||
self.text = gajim.get_name_from_jid(account, jid) # default value of text
|
self.text = gajim.get_name_from_jid(account, jid) # default value of text
|
||||||
|
|
||||||
|
button_text = event_type
|
||||||
if event_type == _('Contact Signed In'):
|
if event_type == _('Contact Signed In'):
|
||||||
ntype = 'presence.online'
|
ntype = 'presence.online'
|
||||||
button_text = _('Start Chat with Contact')
|
button_text = _('Start Chat with Contact')
|
||||||
|
@ -160,7 +161,6 @@ class DesktopNotification:
|
||||||
os.path.join(gajim.DATA_DIR, 'pixmaps', 'events',
|
os.path.join(gajim.DATA_DIR, 'pixmaps', 'events',
|
||||||
'chat_msg_recv.png')) # img to display
|
'chat_msg_recv.png')) # img to display
|
||||||
ntype = 'im' # Notification Type
|
ntype = 'im' # Notification Type
|
||||||
button_text = event_type
|
|
||||||
self.response_description = button_text
|
self.response_description = button_text
|
||||||
|
|
||||||
self.notif = dbus_support.get_notifications_interface()
|
self.notif = dbus_support.get_notifications_interface()
|
||||||
|
|
Loading…
Reference in New Issue