Don't clear screen twice at startup

* Combined init_global_vars and add_devs output
This commit is contained in:
2Shirt 2018-12-04 18:44:52 -07:00
parent 1489ad4237
commit 597a236089
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 4 additions and 4 deletions

View file

@ -166,7 +166,10 @@ class State():
'badblocks': {'Enabled': False, 'Order': 3},
'I/O Benchmark': {'Enabled': False, 'Order': 4},
}
self.add_devs()
try_and_print(
message='Scanning devices...',
function=self.add_devs,
cs='Done')
def add_devs(self):
"""Add all block devices listed by lsblk."""

View file

@ -13,9 +13,6 @@ init_global_vars()
if __name__ == '__main__':
try:
# Prep
clear_screen()
# Show menu
state = State()
menu_diags(state, sys.argv)