Skip to content

Commit

Permalink
Disabled install confirmation for zip extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
slxdy committed Nov 21, 2024
1 parent 52d7ff9 commit b4516d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MelonLoader.Installer/Views/DetailsView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void OnInstallProgress(double progress, string? newStatus)
MelonIcon.Opacity = progress * 0.7 + 0.3;
}

private void OnInstallFinished(string? errorMessage)
private void OnInstallFinished(string? errorMessage, bool showConfirmation = true)
{
if (Model == null)
return;
Expand All @@ -173,7 +173,8 @@ private void OnInstallFinished(string? errorMessage)
return;
}

DialogBox.ShowNotice("Success!", $"Successfully {(Model.Game.MLInstalled ? (wasReinstall ? "reinstalled" : "installed") : "uninstalled")} MelonLoader!");
if (showConfirmation)
DialogBox.ShowNotice("Success!", $"Successfully {(Model.Game.MLInstalled ? (wasReinstall ? "reinstalled" : "installed") : "uninstalled")} MelonLoader!");
}

private void OpenDirHandler(object sender, RoutedEventArgs args)
Expand Down Expand Up @@ -240,7 +241,7 @@ private async void SelectZipHandler(object sender, TappedEventArgs args)
}
}
OnInstallFinished(errorMessage);
OnInstallFinished(errorMessage, false);
UpdateVersionList();
})));
}
Expand Down

0 comments on commit b4516d4

Please sign in to comment.