plugins/reorder: Don't serialize gaptabs as they're recreated automatically

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent e7b74c19
Pipeline #3282 passed with stages
in 5 minutes and 9 seconds
...@@ -117,9 +117,8 @@ def parse_runtime_tablist(tablist): ...@@ -117,9 +117,8 @@ def parse_runtime_tablist(tablist):
for tab in tablist[1:]: for tab in tablist[1:]:
i += 1 i += 1
result = check_tab(tab) result = check_tab(tab)
if result == 'empty': # Don't serialize gap tabs as they're recreated automatically
props.append((i, 'empty')) if result != 'empty':
elif result:
props.append((i, '%s:%s' % (result, tab.jid.full))) props.append((i, '%s:%s' % (result, tab.jid.full)))
return props return props
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment