Skip to content

Commit 537a742

Browse files
committed
Suppress update download error on startup, increase delay to 5s
1 parent de9a3eb commit 537a742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MaximizeToVirtualDesktop/TrayApplication.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private async Task CheckForUpdatesAsync(bool userInitiated = false)
194194
{
195195
try
196196
{
197-
if (!userInitiated) await Task.Delay(3000);
197+
if (!userInitiated) await Task.Delay(5000);
198198

199199
var updateFound = await Updater.CheckForUpdatesAsync();
200200

@@ -220,7 +220,7 @@ private async Task CheckForUpdatesAsync(bool userInitiated = false)
220220
{
221221
await Updater.InstallUpdateAsync(asset);
222222
}
223-
else
223+
else if (userInitiated)
224224
{
225225
MessageBox.Show("Failed to download the update.", "Update Error",
226226
MessageBoxButtons.OK, MessageBoxIcon.Error);

0 commit comments

Comments
 (0)