Skip to content

Commit

Permalink
chore: remove useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Sep 8, 2023
1 parent 0a43f0c commit d0684c8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions DownloadTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Heliosphere.Model;
using Heliosphere.Model.Generated;
using Heliosphere.Model.Penumbra;
using Heliosphere.Ui;
using Heliosphere.Util;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
Expand Down Expand Up @@ -90,21 +89,6 @@ internal Task Start() {

private async Task Run() {
try {
if (this.Plugin.Penumbra.GetModDirectory()?.Trim() == "") {
this.State = State.Errored;
this.StateData = 0;
this.StateDataMax = 1;

this.Plugin.Interface.UiBuilder.AddNotification(
"Cannot install mod: Penumbra is not set up.",
this.Plugin.Name,
NotificationType.Error
);

await this.Plugin.PluginUi.AddIfNotPresentAsync(new SetUpPenumbraWindow(this.Plugin));
return;
}

var info = await this.GetPackageInfo();
if (this.Full) {
foreach (var group in info.Groups) {
Expand Down

0 comments on commit d0684c8

Please sign in to comment.