Skip to content

Commit b1422e9

Browse files
committed
Fix issue where dl name could be diff in some instances
1 parent 1f72b25 commit b1422e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NetSparkle/SparkleUpdater.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,7 @@ public async void InstallUpdate(AppCastItem item, string installPath = null)
12161216
ProgressWindow?.SetDownloadAndInstallButtonEnabled(false); // disable while we ask if we can close up the software
12171217
if (await AskApplicationToSafelyCloseUp())
12181218
{
1219+
CreateUpdateDownloaderIfNeeded(); // so GetDownloadPathForAppCastItem returns proper data
12191220
var path = installPath != null && File.Exists(installPath) ? installPath : await GetDownloadPathForAppCastItem(item);
12201221
if (File.Exists(path))
12211222
{
@@ -1841,6 +1842,7 @@ private async void OnUpdateWindowUserResponded(object sender, UpdateResponseEven
18411842
{
18421843
// we need the download file name in order to tell the user the skipped version
18431844
// file path and/or to run the installer
1845+
CreateUpdateDownloaderIfNeeded();
18441846
_downloadTempFileName = await GetDownloadPathForAppCastItem(currentItem);
18451847
}
18461848
if (result == UpdateAvailableResult.SkipUpdate)

0 commit comments

Comments
 (0)