Merge branch 'dev' into 'master'

Fix Startup Prompt

See merge request crafty-controller/crafty-4!324
This commit is contained in:
Iain Powrie 2022-06-13 12:47:21 +00:00
commit 37f2c8d622
2 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class MainPrompt(cmd.Cmd):
self.import3: Import3 = import3 self.import3: Import3 = import3
# overrides the default Prompt # overrides the default Prompt
self.prompt = f"Crafty Controller v{self.helper.get_version_string()} > " self.prompt = ""
def emptyline(self): def emptyline(self):
pass pass

View File

@ -171,6 +171,7 @@ if __name__ == "__main__":
tasks_starter_thread = Thread(target=tasks_starter, name="tasks_starter") tasks_starter_thread = Thread(target=tasks_starter, name="tasks_starter")
def internet_check(): def internet_check():
print()
logger.info("Checking Internet. This may take a minute.") logger.info("Checking Internet. This may take a minute.")
Console.info("Checking Internet. This may take a minute.") Console.info("Checking Internet. This may take a minute.")
@ -223,6 +224,7 @@ if __name__ == "__main__":
controller_setup_thread.join() controller_setup_thread.join()
Console.info("Crafty has fully started and is now ready for use!") Console.info("Crafty has fully started and is now ready for use!")
crafty_prompt.prompt = f"Crafty Controller v{helper.get_version_string()} > "
if not args.daemon: if not args.daemon:
# Put the prompt under the cursor # Put the prompt under the cursor