1
0
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:
Lucas A 2021-05-13 19:31:10 +02:00
parent 0caba57945
commit 6f248db519

View File

@ -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();
}