diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-04-01 01:26:08 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-04-01 01:26:08 +0200 |
commit | 496752d0db3d54dac7c15220042c9631d587e226 (patch) | |
tree | 099d8843268a0a5677a779cf78d72b4b9883d59e /plugins | |
parent | 7d6b301087dcdc95fb177ea62eb9866ba354ccf7 (diff) | |
download | poezio-496752d0db3d54dac7c15220042c9631d587e226.tar.gz poezio-496752d0db3d54dac7c15220042c9631d587e226.tar.bz2 poezio-496752d0db3d54dac7c15220042c9631d587e226.tar.xz poezio-496752d0db3d54dac7c15220042c9631d587e226.zip |
reorder: create GapTab if configured, when creating ConversationTab fails
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/reorder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/reorder.py b/plugins/reorder.py index 2708d395..e61a9925 100644 --- a/plugins/reorder.py +++ b/plugins/reorder.py @@ -183,7 +183,8 @@ class Plugin(BasePlugin): new_tabs.append(new_tab) except: self.api.information('Failed to create tab \'%s\'.' % jid, 'Error') - continue + if create_gaps: + new_tabs.append(tabs.GapTab(self.core)) last = pos for tab in old_tabs: |