Skip to content

Commit 1c44faa

Browse files
fix: Fixing new version dialog always popping up
This was due to the Rider code clean up tools removing the return. It was ultimately my fault for not adding the return back in when I was reviewing the files changes but realistically I'll keep making that manual mistake if the manual keeps existing. This should keep it in as the code will be ignored when the code clean up is run. closes #23
1 parent 8871269 commit 1c44faa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/TwitchStreamingTools/Views/MainWindow.axaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ protected override void OnInitialized() {
5858
}
5959

6060
if (serverVersion.name?.Equals(localVersion, StringComparison.InvariantCultureIgnoreCase) ?? true) {
61+
// Had to add this because code clean up tools were removing the "redundant" return statement.
62+
// which was causing the check to always be ignored.
63+
#if !DEBUG
64+
return;
65+
#endif
6166
}
6267

6368
#if !DEBUG

0 commit comments

Comments
 (0)