nixos-config/pkgs/osu-lazer/0002-Remove-random-song-button-from-footer.patch
Simon Bruder cb3401ff87
osu-lazer: Rebase patches
This also modifies how the patches are applied, since nixpkgs does not
apply any patches any more.
2021-08-07 13:22:16 +02:00

30 lines
1.1 KiB
Diff

From 9ebcc0ec1bd0bd6bb54f2516290a12bf8ed4def7 Mon Sep 17 00:00:00 2001
From: Simon Bruder <simon@sbruder.de>
Date: Fri, 9 Apr 2021 12:02:44 +0200
Subject: [PATCH 2/2] Remove random song button from footer
I often click it accidentally.
---
osu.Game/Screens/Select/SongSelect.cs | 5 -----
1 file changed, 5 deletions(-)
diff --git a/osu.Game/Screens/Select/SongSelect.cs b/osu.Game/Screens/Select/SongSelect.cs
index 270addc8e6..78a03a37a2 100644
--- a/osu.Game/Screens/Select/SongSelect.cs
+++ b/osu.Game/Screens/Select/SongSelect.cs
@@ -305,11 +305,6 @@ private void load(AudioManager audio, DialogOverlay dialog, OsuColour colours, M
protected virtual IEnumerable<(FooterButton, OverlayContainer)> CreateFooterButtons() => new (FooterButton, OverlayContainer)[]
{
(new FooterButtonMods { Current = Mods }, ModSelect),
- (new FooterButtonRandom
- {
- NextRandom = () => Carousel.SelectNextRandom(),
- PreviousRandom = Carousel.SelectPreviousRandom
- }, null),
(new FooterButtonOptions(), BeatmapOptions)
};
--
2.31.1