1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 06:49:53 +08:00

Fix navigating back and forth from beatmap submission settings screen crashing

supersedes https://github.com/ppy/osu/pull/34656
This commit is contained in:
Bartłomiej Dach
2025-08-14 12:49:13 +02:00
Unverified
parent b5e8d83900
commit 3bfa7bf862
2 changed files with 7 additions and 2 deletions
@@ -200,6 +200,13 @@ namespace osu.Game.Screens.Edit.Submission
}
}
protected override void LoadComplete()
{
base.LoadComplete();
configManager.BindWith(OsuSetting.EditorSubmissionNotifyOnDiscussionReplies, settings.NotifyOnDiscussionReplies);
}
private void createBeatmapSet()
{
bool beatmapHasOnlineId = Beatmap.Value.BeatmapSetInfo.OnlineID > 0;
@@ -23,7 +23,6 @@ namespace osu.Game.Screens.Edit.Submission
[LocalisableDescription(typeof(BeatmapSubmissionStrings), nameof(BeatmapSubmissionStrings.SubmissionSettings))]
public partial class ScreenSubmissionSettings : WizardScreen
{
private readonly BindableBool notifyOnDiscussionReplies = new BindableBool();
private readonly BindableBool loadInBrowserAfterSubmission = new BindableBool();
public override LocalisableString? NextStepText => BeatmapSubmissionStrings.ConfirmSubmission;
@@ -34,7 +33,6 @@ namespace osu.Game.Screens.Edit.Submission
[BackgroundDependencyLoader]
private void load(OsuConfigManager configManager, OsuColour colours)
{
configManager.BindWith(OsuSetting.EditorSubmissionNotifyOnDiscussionReplies, settings.NotifyOnDiscussionReplies);
configManager.BindWith(OsuSetting.EditorSubmissionLoadInBrowserAfterSubmission, loadInBrowserAfterSubmission);
Content.Add(new FillFlowContainer