Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
bug fix - splash window not being disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Apr 8, 2022
1 parent 046fb8f commit 87550b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Update/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Squirrel.SimpleSplat;
using Squirrel.SimpleSplat;
using Squirrel.Json;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -157,7 +157,7 @@ static async Task Setup(string setupPath, bool silentInstall, bool checkInstall)
}

using var _t = Utility.WithTempDirectory(out var tempFolder);
ISplashWindow splash = new ComposedWindow(appname, silentInstall, zp.SetupIconBytes, zp.SetupSplashBytes);
using ISplashWindow splash = new ComposedWindow(appname, silentInstall, zp.SetupIconBytes, zp.SetupSplashBytes);

// verify that this package can be installed on this cpu architecture
if (SquirrelRuntimeInfo.IsPackageCompatibleWithCurrentOS(zp.MachineArchitecture) == false) {
Expand Down Expand Up @@ -243,7 +243,6 @@ static async Task Setup(string setupPath, bool silentInstall, bool checkInstall)

splash.SetMessage(null);
await Install(silentInstall, progressSource, tempFolder);
splash.Dispose();
}

static async Task Install(bool silentInstall, ProgressSource progressSource, string sourceDirectory = null)
Expand Down

0 comments on commit 87550b5

Please sign in to comment.