Show first run dialog on first run of the game

This commit is contained in:
Dean Herbert 2022-05-10 16:43:38 +09:00
parent 09613c9e18
commit 9aadc274bf
2 changed files with 2 additions and 5 deletions

View File

@ -74,7 +74,6 @@ namespace osu.Game.Tests.Visual.UserInterface
} }
[Test] [Test]
[Ignore("Enable when first run setup is being displayed on first run.")]
public void TestDoesntOpenOnSecondRun() public void TestDoesntOpenOnSecondRun()
{ {
AddStep("set first run", () => LocalConfig.SetValue(OsuSetting.ShowFirstRunSetup, true)); AddStep("set first run", () => LocalConfig.SetValue(OsuSetting.ShowFirstRunSetup, true));

View File

@ -171,8 +171,7 @@ namespace osu.Game.Overlays
config.BindWith(OsuSetting.ShowFirstRunSetup, showFirstRunSetup); config.BindWith(OsuSetting.ShowFirstRunSetup, showFirstRunSetup);
// TODO: uncomment when happy with the whole flow. if (showFirstRunSetup.Value) Show();
// if (showFirstRunSetup.Value) Show();
} }
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e) public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
@ -304,8 +303,7 @@ namespace osu.Game.Overlays
} }
else else
{ {
// TODO: uncomment when happy with the whole flow. showFirstRunSetup.Value = false;
// showFirstRunSetup.Value = false;
currentStepIndex = null; currentStepIndex = null;
Hide(); Hide();
} }