mirror of
https://github.com/rfvgyhn/min-ed-launcher.git
synced 2026-02-04 09:05:28 +00:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user