mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32:55 +08:00
Merge conditional expression.
This commit is contained in:
parent
0caba57945
commit
6f248db519
@ -108,7 +108,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
if (InitialPath != null)
|
||||
directorySelector.CurrentPath.Value = InitialPath;
|
||||
|
||||
directorySelector.CurrentPath.BindValueChanged(e => selectionButton.Enabled.Value = e.NewValue != null ? IsValidDirectory(e.NewValue) : false, true);
|
||||
directorySelector.CurrentPath.BindValueChanged(e => selectionButton.Enabled.Value = e.NewValue != null && IsValidDirectory(e.NewValue), true);
|
||||
base.LoadComplete();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user