summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-08-01 15:45:10 +0200
committermathieui <mathieui@mathieui.net>2012-08-01 15:45:10 +0200
commitf76e80c5fae108d29ba87a495cd92a1f185c1da2 (patch)
tree85459d871c6a69a3a99a0a6d4f7b29c9dcc190c6 /src/tabs.py
parent9905646184361dba98ad742b39e946bb74580c7a (diff)
downloadpoezio-f76e80c5fae108d29ba87a495cd92a1f185c1da2.tar.gz
poezio-f76e80c5fae108d29ba87a495cd92a1f185c1da2.tar.bz2
poezio-f76e80c5fae108d29ba87a495cd92a1f185c1da2.tar.xz
poezio-f76e80c5fae108d29ba87a495cd92a1f185c1da2.zip
Sort resources from highest priority to lowest
- Previously it was from lowest to highest - Add the “Priority:” info to the “i” key in the roster
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 4d52a285..7a9affb8 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2424,10 +2424,11 @@ class RosterInfoTab(Tab):
res.status if res else '',)
elif isinstance(selected_row, Resource):
res = selected_row
- msg = 'Resource: %s (%s)\nCurrent status: %s' % (
+ msg = 'Resource: %s (%s)\nCurrent status: %s\nPriority: %s' % (
res.jid,
res.presence,
- res.status,)
+ res.status,
+ res.priority)
elif isinstance(selected_row, RosterGroup):
rg = selected_row
msg = 'Group: %s [%s/%s] contacts online' % (