1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 03:22:57 +08:00

Fix some usages of SettingsTextBox using a bindable with null as default

This commit is contained in:
Susko3 2021-10-01 19:54:10 +02:00
parent a620b55d55
commit 6d6fda8337
2 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,11 @@ namespace osu.Game.Tests.Visual.Settings
};
[SettingSource("Sample string", "Change something for a mod")]
public Bindable<string> StringBindable { get; } = new Bindable<string>();
public Bindable<string> StringBindable { get; } = new Bindable<string>
{
Default = string.Empty,
Value = "Sample text"
};
}
private enum TestEnum

View File

@ -26,7 +26,7 @@ namespace osu.Game.Tournament.Components
public DateTextBox()
{
base.Current = new Bindable<string>();
base.Current = new Bindable<string>(string.Empty);
((OsuTextBox)Control).OnCommit += (sender, newText) =>
{