Startup checks for CLI console

This commit is contained in:
Mark Qvist 2025-11-20 11:37:14 +01:00
parent 2e32f22076
commit ca2ef3ca37
2 changed files with 8 additions and 3 deletions

View file

@ -6958,8 +6958,13 @@ def run():
if args.interactive:
while not sideband.getstate("core.started") == True: time.sleep(0.1)
from .sideband import console
console.attach(sideband)
import importlib
if importlib.util.find_spec('prompt_toolkit') != None:
from .sideband import console
console.attach(sideband)
else:
print("Could not start Sideband console, since the \"prompt-toolkit\" module is not available")
print("You can install it with \"pip install prompt-toolkit\"")
else:
while True: time.sleep(5)

View file

@ -898,7 +898,7 @@ class SidebandCore():
def save_configuration(self):
self.__save_config()
if self.is_standalone: self.owner_app.save_window_config()
if self.is_standalone and not self.is_daemon: self.owner_app.save_window_config()
def set_active_propagation_node(self, dest):
if dest == None: