fix: disallow installing client config if another client config is installed

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-06-30 20:51:04 +02:00
parent e530c75307
commit 01deab7c64
4 changed files with 18 additions and 23 deletions

View File

@@ -28,7 +28,7 @@ from components.webui_client.client_dialogs import (
)
from components.webui_client.client_utils import (
backup_mainsail_config_json,
config_for_other_client_exist,
detect_client_cfg_conflict,
enable_mainsail_remotemode,
restore_mainsail_config_json,
symlink_webui_nginx_log,
@@ -90,7 +90,7 @@ def install_client(client: BaseWebClient) -> None:
if (
kl_instances
and not client_config.config_dir.exists()
and not config_for_other_client_exist(client_to_ignore=client.client)
and not detect_client_cfg_conflict(client)
):
print_install_client_config_dialog(client)
question = f"Download the recommended {client_config.display_name}?"