plugins/reorder: satisfy linter

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent f002cc9b
......@@ -117,6 +117,8 @@ def parse_runtime_tablist(tablist):
class Plugin(BasePlugin):
"""reorder plugin"""
def init(self):
......@@ -129,20 +131,24 @@ class Plugin(BasePlugin):
help='Save the current tab layout')
def command_save_order(self):
def command_save_order(self) -> None:
conf = parse_runtime_tablist(self.core.tabs)
for key, value in conf:
self.config.set(key, value)
self.api.information('Tab order saved', 'Info')
def command_reorder(self):
def command_reorder(self) -> None:
tabs_spec = parse_config(self.config)
if not tabs_spec:
return self.api.information('Invalid reorder config', 'Error')
self.api.information('Invalid reorder config', 'Error')
return None
old_tabs = self.core.tabs.get_tabs()
roster = old_tabs.pop(0)
......@@ -173,3 +179,5 @@ class Plugin(BasePlugin):
return None
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