Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit a158659

Browse files
committed
cached changelog (fix #113)
1 parent 415678c commit a158659

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

UI/MainWindow/MainWindowMenuHandler.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ await this.ShowMessageAsync(Program.Translations.Get("FailedCheck"),
294294
var message = string.Format(Program.Translations.Get("VersionYour"),
295295
VersionHelper.GetAssemblyVersion());
296296
#endif
297-
await this.ShowMessageAsync(Program.Translations.Get("VersUpToDate"),
297+
await this.ShowMessageAsync(Program.Translations.Get("VersUpToDate"),
298298
message, MessageDialogStyle.Affirmative, MetroDialogOptions);
299299
}
300300
}
@@ -305,7 +305,10 @@ private async void Changelog_Click(object sender, RoutedEventArgs e)
305305
var dialog = await this.ShowProgressAsync("Retrieving changelog...", "Please wait...");
306306
dialog.SetIndeterminate();
307307

308-
await UpdateCheck.Check();
308+
if (Program.UpdateStatus.AllReleases == null)
309+
{
310+
await UpdateCheck.Check();
311+
}
309312
var status = Program.UpdateStatus;
310313

311314
await dialog.CloseAsync();
@@ -327,9 +330,9 @@ private void MenuButton_Action(object sender, RoutedEventArgs e)
327330
case 2: Server_Start(); break;
328331
}
329332
}
330-
#endregion
333+
#endregion
331334

332-
#region Methods
335+
#region Methods
333336
/// <summary>
334337
/// Loads the input gesture texts to the menu items.
335338
/// </summary>
@@ -448,6 +451,6 @@ private MenuItem BuildRecentFileItem(string file)
448451
// Return the MenuItem
449452
return mi;
450453
}
451-
#endregion
454+
#endregion
452455
}
453456
}

0 commit comments

Comments
 (0)