Revert window modes to previous code to correctly apply framework restrictions

This commit is contained in:
Dean Herbert 2020-12-22 13:04:39 +09:00
parent ce2b96afc5
commit 7c5964fad8
2 changed files with 3 additions and 2 deletions

View File

@ -59,9 +59,10 @@ private void load(FrameworkConfigManager config, OsuConfigManager osuConfig, Gam
Children = new Drawable[]
{
windowModeDropdown = new SettingsEnumDropdown<WindowMode>
windowModeDropdown = new SettingsDropdown<WindowMode>
{
LabelText = "Screen mode",
ItemSource = windowModes,
Current = config.GetBindable<WindowMode>(FrameworkSetting.WindowMode),
},
resolutionSettingsContainer = new Container

View File

@ -9,7 +9,7 @@
namespace osu.Game.Overlays.Settings
{
public abstract class SettingsDropdown<T> : SettingsItem<T>
public class SettingsDropdown<T> : SettingsItem<T>
{
protected new OsuDropdown<T> Control => (OsuDropdown<T>)base.Control;