Skip to content

Commit

Permalink
Make editor make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Nov 28, 2024
1 parent f792b6d commit 932afcd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions osu.Game/Screens/Edit/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ public partial class Editor : ScreenWithBeatmapBackground, IKeyBindingHandler<Gl

public override float BackgroundParallaxAmount => 0.1f;

public override bool AllowUserExit => false;

public override bool HideOverlaysOnEnter => true;

public override bool DisallowExternalBeatmapRulesetChanges => true;
Expand Down Expand Up @@ -194,6 +192,8 @@ protected override UserActivity InitialActivity
}
}

protected override bool InitialBackButtonVisibility => false;

protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
=> dependencies = new DependencyContainer(base.CreateChildDependencies(parent));

Expand Down Expand Up @@ -760,11 +760,6 @@ public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)

switch (e.Action)
{
case GlobalAction.Back:
// as we don't want to display the back button, manual handling of exit action is required.
this.Exit();
return true;

case GlobalAction.EditorCloneSelection:
Clone();
return true;
Expand Down

0 comments on commit 932afcd

Please sign in to comment.