mirror of
https://github.com/ppy/osu.git
synced 2025-03-24 19:17:20 +08:00
Store value of toggle to setting
This commit is contained in:
parent
61ee830588
commit
0328708889
@ -202,6 +202,7 @@ namespace osu.Game.Configuration
|
||||
SetDefault(OsuSetting.HideCountryFlags, false);
|
||||
|
||||
SetDefault(OsuSetting.MultiplayerRoomFilter, RoomPermissionsFilter.All);
|
||||
SetDefault(OsuSetting.MultiplayerShowInProgressFilter, true);
|
||||
|
||||
SetDefault(OsuSetting.LastProcessedMetadataId, -1);
|
||||
|
||||
@ -447,6 +448,7 @@ namespace osu.Game.Configuration
|
||||
EditorRotationOrigin,
|
||||
EditorTimelineShowBreaks,
|
||||
EditorAdjustExistingObjectsOnTimingChanges,
|
||||
AlwaysRequireHoldingForPause
|
||||
AlwaysRequireHoldingForPause,
|
||||
MultiplayerShowInProgressFilter,
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
RelativeSizeAxes = Axes.None,
|
||||
Width = 200,
|
||||
Padding = new MarginPadding { Vertical = 5, },
|
||||
Current = { Value = true }
|
||||
Current = Config.GetBindable<bool>(OsuSetting.MultiplayerShowInProgressFilter),
|
||||
};
|
||||
|
||||
showInProgress.Current.BindValueChanged(_ => UpdateFilter());
|
||||
|
Loading…
x
Reference in New Issue
Block a user