From 55befe9efbb20a20d95a801910d53f3a2d967c22 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Tue, 15 Jul 2025 13:14:44 +0900 Subject: [PATCH] Write only fixed release streams back to config --- osu.Game/OsuGame.cs | 4 ---- osu.Game/Updater/UpdateManager.cs | 8 ++++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs index 153e6acb3b..e060450a5e 100644 --- a/osu.Game/OsuGame.cs +++ b/osu.Game/OsuGame.cs @@ -1058,10 +1058,6 @@ namespace osu.Game if (RuntimeInfo.EntryAssembly.GetCustomAttribute() == null) Logger.Log(NotificationsStrings.NotOfficialBuild.ToString()); - // Make sure the release stream setting matches the build which was just run. - if (Enum.TryParse(Version.Split('-').Last(), true, out var releaseStream)) - LocalConfig.SetValue(OsuSetting.ReleaseStream, releaseStream); - var languages = Enum.GetValues(); var mappings = languages.Select(language => diff --git a/osu.Game/Updater/UpdateManager.cs b/osu.Game/Updater/UpdateManager.cs index 335f6085a9..4a067e3f68 100644 --- a/osu.Game/Updater/UpdateManager.cs +++ b/osu.Game/Updater/UpdateManager.cs @@ -56,12 +56,16 @@ namespace osu.Game.Updater string version = game.Version; string lastVersion = config.Get(OsuSetting.Version); - if (game.IsDeployedBuild && version != lastVersion) + if (game.IsDeployedBuild) { // only show a notification if we've previously saved a version to the config file (ie. not the first run). - if (!string.IsNullOrEmpty(lastVersion)) + if (!string.IsNullOrEmpty(lastVersion) && version != lastVersion) Notifications.Post(new UpdateCompleteNotification(version)); + // make sure the release stream setting matches the build which was just run. + if (FixedReleaseStream != null) + config.SetValue(OsuSetting.ReleaseStream, FixedReleaseStream.Value); + if (RuntimeInfo.EntryAssembly.GetCustomAttribute() == null) Notifications.Post(new SimpleNotification { Text = NotificationsStrings.NotOfficialBuild }); }