0
0
mirror of https://git.ryujinx.app/ryubing/ryujinx.git synced 2025-04-24 09:25:12 +00:00

UI: Restore in-app changelog functionality

This commit is contained in:
GreemDev 2025-03-18 18:58:52 -05:00
parent f2c5cf8a60
commit f09ca0f57f
3 changed files with 9 additions and 9 deletions

View File

@ -40,7 +40,7 @@ namespace Ryujinx.Common
public static string GetChangelogUrl(Version currentVersion, Version newVersion, ReleaseChannels.Channel releaseChannel) => public static string GetChangelogUrl(Version currentVersion, Version newVersion, ReleaseChannels.Channel releaseChannel) =>
IsCanaryBuild IsCanaryBuild
? $"https://github.com/{ReleaseChannelOwner}/{ReleaseChannelSourceRepo}/compare/Canary-{currentVersion}...Canary-{newVersion}" ? $"https://git.ryujinx.app/ryubing/ryujinx/-/compare/Canary-{currentVersion}...Canary-{newVersion}"
: GetChangelogForVersion(newVersion, releaseChannel); : GetChangelogForVersion(newVersion, releaseChannel);
public static string GetChangelogForVersion(Version version, ReleaseChannels.Channel releaseChannel) => public static string GetChangelogForVersion(Version version, ReleaseChannels.Channel releaseChannel) =>

View File

@ -103,10 +103,10 @@ namespace Ryujinx.Ava.Systems
LocaleManager.Instance[LocaleKeys.DialogUpdaterAlreadyOnLatestVersionMessage], LocaleManager.Instance[LocaleKeys.DialogUpdaterAlreadyOnLatestVersionMessage],
string.Empty); string.Empty);
/*if (userResult is UserResult.Ok) if (userResult is UserResult.Ok)
{ {
OpenHelper.OpenUrl(ReleaseInformation.GetChangelogForVersion(currentVersion)); OpenHelper.OpenUrl(ReleaseInformation.GetChangelogForVersion(currentVersion, _currentReleaseChannel.Value));
}*/ }
} }
Logger.Info?.Print(LogClass.Application, "Up to date."); Logger.Info?.Print(LogClass.Application, "Up to date.");
@ -232,7 +232,7 @@ namespace Ryujinx.Ava.Systems
Logger.Info?.Print(LogClass.Application, $"Version found: {newVersionString}"); Logger.Info?.Print(LogClass.Application, $"Version found: {newVersionString}");
//RequestUserToUpdate: RequestUserToUpdate:
// Show a message asking the user if they want to update // Show a message asking the user if they want to update
UserResult shouldUpdate = await ContentDialogHelper.CreateUpdaterChoiceDialog( UserResult shouldUpdate = await ContentDialogHelper.CreateUpdaterChoiceDialog(
LocaleManager.Instance[LocaleKeys.RyujinxUpdater], LocaleManager.Instance[LocaleKeys.RyujinxUpdater],
@ -245,9 +245,9 @@ namespace Ryujinx.Ava.Systems
await UpdateRyujinx(_buildUrl); await UpdateRyujinx(_buildUrl);
break; break;
// Secondary button maps to no, which in this case is the show changelog button. // Secondary button maps to no, which in this case is the show changelog button.
/*case UserResult.No: case UserResult.No:
OpenHelper.OpenUrl(ReleaseInformation.GetChangelogUrl(currentVersion, newVersion)); OpenHelper.OpenUrl(ReleaseInformation.GetChangelogUrl(currentVersion, newVersion, _currentReleaseChannel.Value));
goto RequestUserToUpdate;*/ goto RequestUserToUpdate;
default: default:
_running = false; _running = false;
break; break;

View File

@ -354,7 +354,7 @@ namespace Ryujinx.Ava.UI.Helpers
primary, primary,
secondaryText, secondaryText,
LocaleManager.Instance[LocaleKeys.InputDialogYes], LocaleManager.Instance[LocaleKeys.InputDialogYes],
string.Empty, // LocaleManager.Instance[LocaleKeys.DialogUpdaterShowChangelogMessage], LocaleManager.Instance[LocaleKeys.DialogUpdaterShowChangelogMessage],
LocaleManager.Instance[LocaleKeys.InputDialogNo], LocaleManager.Instance[LocaleKeys.InputDialogNo],
(int)Symbol.Help, (int)Symbol.Help,
UserResult.Yes); UserResult.Yes);