diff --git a/src/interface/desktop/configure_screen.py b/src/interface/desktop/configure_screen.py index f98a9d3f..fc8f137b 100644 --- a/src/interface/desktop/configure_screen.py +++ b/src/interface/desktop/configure_screen.py @@ -3,7 +3,9 @@ from PyQt6 import QtWidgets from PyQt6.QtCore import Qt # Internal Packages -from src.utils import constants, yaml as yaml_utils +from src.configure import configure_server +from src.utils import constants, state, yaml as yaml_utils +from src.utils.cli import cli from src.utils.config import SearchType from src.interface.desktop.file_browser import FileBrowser @@ -80,6 +82,12 @@ class ConfigureScreen(QtWidgets.QDialog): del config['processor']['conversation'] yaml_utils.save_config_to_file(config, self.config_file) + # Load config from app config file + args = cli(state.cli_args) + + # Configure server with loaded config + configure_server(args, required=True) + self.hide()