summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-06-15 16:06:48 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-06-15 16:06:48 +0200
commit75d7f5da9368f6ce6947aa5a1728f94eb149d4d5 (patch)
tree126e02d5cfb0bc6304ec00b6373fb530584e5957 /plugins
parente7b74c19a8954ebb6bb3315fe2a403f490f0b5bf (diff)
downloadpoezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.tar.gz
poezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.tar.bz2
poezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.tar.xz
poezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.zip
plugins/reorder: Don't serialize gaptabs as they're recreated automatically
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/reorder.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/reorder.py b/plugins/reorder.py
index 4a5f515e..38975a02 100644
--- a/plugins/reorder.py
+++ b/plugins/reorder.py
@@ -117,9 +117,8 @@ def parse_runtime_tablist(tablist):
for tab in tablist[1:]:
i += 1
result = check_tab(tab)
- if result == 'empty':
- props.append((i, 'empty'))
- elif result:
+ # Don't serialize gap tabs as they're recreated automatically
+ if result != 'empty':
props.append((i, '%s:%s' % (result, tab.jid.full)))
return props