File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ Public Class WinNUT
134134 LogFile.LogTracing( "Loaded Params Complete" , LogLvl.LOG_DEBUG, Me )
135135
136136 'Init Systray
137- Me .NotifyIcon.Text = WinNUT_Globals.LongProgramName & " - " & WinNUT_Globals.ProgramVersion
137+ Me .NotifyIcon.Text = WinNUT_Globals.LongProgramName & " - " & WinNUT_Globals.ShortProgramVersion
138138 Me .NotifyIcon.Visible = False
139139 LogFile.LogTracing( "NotifyIcons Initialised" , LogLvl.LOG_DEBUG, Me )
140140
@@ -404,7 +404,7 @@ Public Class WinNUT
404404 End Sub
405405
406406 Private Sub Event_UpdateNotifyIconStr( ByVal Optional Reason As String = Nothing , ByVal Optional Message As String = Nothing ) Handles Me .UpdateNotifyIconStr
407- Dim ShowVersion As String = StrReverse(StrReverse( WinNUT_Globals.ProgramVersion).Substring(StrReverse(WinNUT_Globals.ProgramVersion).IndexOf( "." ) + 1 ))
407+ Dim ShowVersion As String = WinNUT_Globals.ShortProgramVersion
408408 Dim NotifyStr As String = WinNUT_Globals.ProgramName & " - " & ShowVersion & vbNewLine
409409 Dim FormText As String = WinNUT_Globals.ProgramName
410410 Select Case Reason
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Module WinNUT_Globals
1111 Public LongProgramName As String
1212 Public ProgramName As String
1313 Public ProgramVersion As String
14+ Public ShortProgramVersion As String
1415 Public GitHubURL As String
1516 Public Copyright As String
1617 Public Directory_AppData As String
@@ -23,6 +24,7 @@ Module WinNUT_Globals
2324 LongProgramName = My.Application.Info.Description
2425 ProgramName = My.Application.Info.ProductName
2526 ProgramVersion = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString
27+ ShortProgramVersion = ProgramVersion.Substring( 0 , ProgramVersion.IndexOf( "." , ProgramVersion.IndexOf( "." ) + 1 ))
2628 GitHubURL = My.Application.Info.Trademark
2729 Copyright = My.Application.Info.Copyright
2830 Directory_AppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\WinNUT-Client"
You can’t perform that action at this time.
0 commit comments