Skip to content

Commit b7e75b3

Browse files
committed
Fix rendering of app id containing underscore
1 parent 06401b8 commit b7e75b3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

OpenVR2Key/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<value>False</value>
2424
</setting>
2525
<setting name="Version" serializeAs="String">
26-
<value>v0.36</value>
26+
<value>v0.40</value>
2727
</setting>
2828
</OpenVR2Key.Properties.Settings>
2929
</userSettings>

OpenVR2Key/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ public MainWindow()
6868
{
6969
color = Brushes.Gray;
7070
}
71+
var appIdFixed = appId.Replace("_", "__"); // Single underscores makes underlined chars
7172
Dispatcher.Invoke(() =>
7273
{
7374
Debug.WriteLine($"Setting AppID to: {appId}");
74-
Label_Application.Content = appId;
75+
Label_Application.Content = appIdFixed;
7576
Label_Application.Background = color;
7677
});
77-
7878
},
7979

8080
// We should update the text on the current binding we are recording

OpenVR2Key/Properties/Settings.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenVR2Key/Properties/Settings.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<Value Profile="(Default)">False</Value>
1616
</Setting>
1717
<Setting Name="Version" Type="System.String" Scope="User">
18-
<Value Profile="(Default)">v0.36</Value>
18+
<Value Profile="(Default)">v0.40</Value>
1919
</Setting>
2020
</Settings>
2121
</SettingsFile>

0 commit comments

Comments
 (0)