Skip to content

Commit 259aa9f

Browse files
Added - Beta Letter To Title, Improved Method Of Getting Current Version, Fixed Dev build being on
1 parent 7843510 commit 259aa9f

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<value />
5050
</setting>
5151
<setting name="DevBuild" serializeAs="String">
52-
<value>True</value>
52+
<value>False</value>
5353
</setting>
5454
<setting name="BetaBuild" serializeAs="String">
5555
<value>True</value>

Form1.vb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Imports System.Net.Http
88
Imports Emgu.CV
99
Imports Emgu.CV.CvEnum
1010
Imports Emgu.CV.Structure
11+
Imports System.Reflection
1112

1213
Public Class Form1
1314
Private Declare Function EnumWindows Lib "user32.dll" (ByVal lpEnumFunc As EnumWindowCallback, ByVal lParam As IntPtr) As Boolean
@@ -60,7 +61,7 @@ Public Class Form1
6061
DevMenu.Show()
6162
Me.Text = "True Stretched (Dev)"
6263
ElseIf My.Settings.BetaBuild = True Then
63-
Me.Text = "True Stretched (Beta)"
64+
Me.Text = "True Stretched (Beta " + My.Settings.BetaLetter.ToUpper() + ")"
6465
End If
6566

6667
' Ensure Native & Stretched Resolutions Don't match (Fixes "Disable True Stretched" being the only option)
@@ -196,8 +197,8 @@ Public Class Form1
196197
Dim serverVersionString As String = jsonObject("Version").ToString()
197198
Dim serverVersion As Version = New Version(serverVersionString)
198199

199-
Dim currentVersion As Version = New Version(Application.ProductVersion)
200-
Dim currentVersionString As String = Application.ProductVersion
200+
Dim currentVersion As Version = Assembly.GetExecutingAssembly().GetName().Version
201+
Dim currentVersionString As String = Assembly.GetExecutingAssembly().GetName().Version.ToString()
201202
If My.Settings.BetaBuild Then
202203
currentVersionString = currentVersionString & My.Settings.BetaLetter
203204
End If

My Project/Settings.Designer.vb

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

My Project/Settings.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<Value Profile="(Default)" />
4343
</Setting>
4444
<Setting Name="DevBuild" Type="System.Boolean" Scope="User">
45-
<Value Profile="(Default)">True</Value>
45+
<Value Profile="(Default)">False</Value>
4646
</Setting>
4747
<Setting Name="BetaBuild" Type="System.Boolean" Scope="User">
4848
<Value Profile="(Default)">True</Value>

0 commit comments

Comments
 (0)