Skip to content

Commit

Permalink
refactor(Studio): Hardcode the current changelog for now
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Sep 4, 2024
1 parent e9194b2 commit a2a588f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Studio/CelesteStudio/Studio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,9 @@ private MenuBar CreateMenu() {
var wikiItem = MenuUtils.CreateAction("Open wiki...", Keys.None, () => ProcessHelper.OpenInDefaultApp("https://github.com/EverestAPI/CelesteTAS-EverestInterop/wiki"));
var whatsNewItem = MenuUtils.CreateAction("What's new?", Keys.None, () => {
var asm = Assembly.GetExecutingAssembly();
var version = asm.GetName().Version!;
// Only update changelog for minor releases, not patches
string versionName = new Version(version.Major, version.Major, 0).ToString(3);
if (asm.GetManifestResourceStream($"Changelogs/v{versionName}.md") is { } stream) {
WhatsNewDialog.Show($"What's new in Studio v{versionName}?", new StreamReader(stream).ReadToEnd());
// TODO: Don't hardcode the current changelog
if (asm.GetManifestResourceStream($"Changelogs/v3.0.0.md") is { } stream) {
WhatsNewDialog.Show($"What's new in Studio v3.0.0?", new StreamReader(stream).ReadToEnd());
}
});
var aboutItem = MenuUtils.CreateAction("About...", Keys.None, () => {
Expand Down

0 comments on commit a2a588f

Please sign in to comment.