Skip to content

Commit dd26ecb

Browse files
Only download exe if using a stadalone version
1 parent 4da4d8b commit dd26ecb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/UI/ViewModels/SettingsViewModel.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ private void CheckUpdates()
113113

114114
try
115115
{
116-
var url = _deploymentService.IsRunningAsInstalled() ? _updaterConfig.UpdateUrlInstaller : _updaterConfig.UpdateUrlSingle;
116+
var isStandalone = !_deploymentService.IsRunningAsInstalled();
117+
118+
var url = isStandalone ? _updaterConfig.UpdateUrlInstaller : _updaterConfig.UpdateUrlSingle;
119+
if (isStandalone)
120+
{
121+
AutoUpdater.OpenDownloadPage = true;
122+
}
117123
AutoUpdater.CheckForUpdateEvent += AutoUpdaterOnCheckForUpdateEvent;
118124
AutoUpdater.Start(url);
119125
}

0 commit comments

Comments
 (0)