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:
parent
a620b55d55
commit
6d6fda8337
@ -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
|
||||
|
@ -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) =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user