From 5fc97ed52255b85843a81cf67536219b0c28973f Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Thu, 3 Oct 2024 11:42:42 +0200 Subject: [PATCH] only load modpack config if url is provided --- .../Features/Workspaces/GitLabRepo/GitLabRepoWorkspace.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ModpackUpdater.Apps.Manager/Features/Workspaces/GitLabRepo/GitLabRepoWorkspace.cs b/ModpackUpdater.Apps.Manager/Features/Workspaces/GitLabRepo/GitLabRepoWorkspace.cs index 1c9b0b6..3cc5122 100644 --- a/ModpackUpdater.Apps.Manager/Features/Workspaces/GitLabRepo/GitLabRepoWorkspace.cs +++ b/ModpackUpdater.Apps.Manager/Features/Workspaces/GitLabRepo/GitLabRepoWorkspace.cs @@ -24,7 +24,8 @@ internal class GitLabRepoWorkspace(GitLabRepoWorkspaceConfig config) : IWorkspac public async Task Load() { - ModpackConfig = ModpackConfig.LoadFromUrl(Config.ModpackConfigUrl); + if (!string.IsNullOrWhiteSpace(Config.ModpackConfigUrl)) + ModpackConfig = ModpackConfig.LoadFromUrl(Config.ModpackConfigUrl); rawInstallInfos = await GetContent(ConfigX.FileLocationInstallJson); InstallInfos = InstallInfos.Parse(rawInstallInfos);