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

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-06-15 16:06:48 +02:00
parent e7b74c19a8
commit 75d7f5da93
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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