- minor optimization

This commit is contained in:
Marius Stanciu
2020-04-15 05:45:09 +03:00
committed by Marius
parent 0394011046
commit 46cc9f3f19

View File

@@ -11976,6 +11976,7 @@ class App(QtCore.QObject):
curr_len = len(cmd_name)
if curr_len > max_len:
max_len = curr_len
max_tabs = math.ceil(max_len / 8)
for cmd_name in sorted(commands):
cmd_description = commands[cmd_name]['description']
@@ -11988,7 +11989,6 @@ class App(QtCore.QObject):
if curr_len == max_len:
cmd_line_txt = ' %s%s%s' % (str(cmd_name), tabs, cmd_description)
else:
max_tabs = math.ceil(max_len/8)
nr_tabs = 0
for x in range(max_tabs):