File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
src/TwitchStreamingTools/Views Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,11 @@ protected override void OnInitialized() {
57
57
Task . Factory . StartNew ( async ( ) => {
58
58
GithubLatestReleaseJson ? serverVersion =
59
59
await GitHubUpdateManager . GetLatestVersion ( "nullinside-development-group" , "twitch-streaming-tools" ) ;
60
- string ? localVersion = Constants . APP_VERSION ;
61
- if ( null == serverVersion || string . IsNullOrWhiteSpace ( serverVersion . name ) ||
62
- string . IsNullOrWhiteSpace ( localVersion ) ) {
60
+ if ( null == serverVersion || string . IsNullOrWhiteSpace ( serverVersion . name ) ) {
63
61
return ;
64
62
}
65
63
66
- localVersion = localVersion . Substring ( 0 , localVersion . LastIndexOf ( '.' ) ) ;
67
- if ( string . IsNullOrWhiteSpace ( localVersion ) ) {
68
- return ;
69
- }
70
-
71
- if ( serverVersion . name ? . Equals ( localVersion , StringComparison . InvariantCultureIgnoreCase ) ?? true ) {
64
+ if ( serverVersion . name ? . Equals ( Constants . APP_VERSION , StringComparison . InvariantCultureIgnoreCase ) ?? true ) {
72
65
// Had to add this because code clean up tools were removing the "redundant" return statement.
73
66
// which was causing the check to always be ignored.
74
67
#if ! DEBUG
@@ -82,7 +75,7 @@ protected override void OnInitialized() {
82
75
return ;
83
76
}
84
77
85
- vm . LocalVersion = localVersion ;
78
+ vm . LocalVersion = Constants . APP_VERSION ;
86
79
Dispatcher . UIThread . Post ( async void ( ) => {
87
80
try {
88
81
var versionWindow = new NewVersionWindow {
You can’t perform that action at this time.
0 commit comments