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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user