fix trying to install missin g product when it hasn't been selected to play

only applied when using frontier auth
This commit is contained in:
Chris
2025-07-20 23:05:08 -06:00
parent 676cf46801
commit c069e16e63

View File

@ -448,7 +448,15 @@ let run settings launcherVersion cancellationToken = taskResult {
|> Product.filterByUpdateable settings.Platform settings.ForceUpdate
|> List.toArray
if settings.AutoRun then
Product.selectProduct settings.ProductWhitelist missing |> Option.map(fun p -> [| p |]) |> Option.defaultWith(fun () -> [||])
let preferredProduct =
products
|> Product.filterByUpdateable settings.Platform settings.ForceUpdate
|> List.toArray
|> Product.selectProduct settings.ProductWhitelist
Product.selectProduct settings.ProductWhitelist missing
|> Option.filter(fun missing -> preferredProduct |> Option.exists(fun preferred -> missing = preferred))
|> Option.map(fun p -> [| p |])
|> Option.defaultWith(fun () -> [||])
else if not settings.SkipInstallPrompt then
missing |> Console.promptForProductsToUpdate "install"
else