Skip to content

Commit 543f603

Browse files
committed
Display on Windows and Linux only
1 parent c5ee875 commit 543f603

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

osu.Game/Overlays/Settings/Sections/Input/TabletSettings.cs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,18 @@ private void load(OsuColour colours)
101101
AutoSizeAxes = Axes.Y,
102102
}.With(t =>
103103
{
104-
t.NewLine();
105-
t.AddText("If your tablet is not getting detected properly,", s => s.Colour = colours.Yellow);
106-
t.NewParagraph();
107-
t.AddText("read ", s => s.Colour = colours.Yellow);
108-
t.AddLink("the driver's FAQ", LinkAction.External, RuntimeInfo.OS == RuntimeInfo.Platform.Windows
109-
? @"https://github.com/OpenTabletDriver/OpenTabletDriver/wiki/Windows-FAQ"
110-
: @"https://github.com/OpenTabletDriver/OpenTabletDriver/wiki/Linux-FAQ");
111-
112-
t.AddText(" to troubleshoot the problem further.", s => s.Colour = colours.Yellow);
104+
if (RuntimeInfo.OS == RuntimeInfo.Platform.Windows || RuntimeInfo.OS == RuntimeInfo.Platform.Linux)
105+
{
106+
t.NewLine();
107+
t.AddText("If your tablet is not getting detected properly,", s => s.Colour = colours.Yellow);
108+
t.NewParagraph();
109+
t.AddText("read ", s => s.Colour = colours.Yellow);
110+
t.AddLink("the driver's FAQ", LinkAction.External, RuntimeInfo.OS == RuntimeInfo.Platform.Windows
111+
? @"https://github.com/OpenTabletDriver/OpenTabletDriver/wiki/Windows-FAQ"
112+
: @"https://github.com/OpenTabletDriver/OpenTabletDriver/wiki/Linux-FAQ");
113+
114+
t.AddText(" to troubleshoot the problem further.", s => s.Colour = colours.Yellow);
115+
}
113116
}),
114117
}
115118
},

0 commit comments

Comments
 (0)