mirror of
https://github.com/ppy/osu
synced 2024-12-28 18:02:53 +00: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