mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Simplify weird conditionals
This commit is contained in:
parent
e39a295c5c
commit
568d027013
@ -266,24 +266,16 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
|
||||
private void updateVisibility()
|
||||
{
|
||||
if (!tabletHandler.Enabled.Value)
|
||||
{
|
||||
mainSettings.Hide();
|
||||
noTabletMessage.Hide();
|
||||
return;
|
||||
}
|
||||
|
||||
bool tabletFound = tablet.Value != null;
|
||||
|
||||
if (!tabletFound)
|
||||
{
|
||||
mainSettings.Hide();
|
||||
noTabletMessage.Show();
|
||||
return;
|
||||
}
|
||||
|
||||
mainSettings.Show();
|
||||
mainSettings.Hide();
|
||||
noTabletMessage.Hide();
|
||||
|
||||
if (!tabletHandler.Enabled.Value)
|
||||
return;
|
||||
|
||||
if (tablet.Value != null)
|
||||
mainSettings.Show();
|
||||
else
|
||||
noTabletMessage.Show();
|
||||
}
|
||||
|
||||
private void applyAspectRatio(BindableNumber<float> sizeChanged)
|
||||
|
Loading…
Reference in New Issue
Block a user