Skip to content

Commit 7705b0a

Browse files
committed
Fix a logic bug in displaying license.
1 parent eae6bdb commit 7705b0a

3 files changed

Lines changed: 20 additions & 19 deletions

File tree

src/QSP/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ internal static void Main(string[] args)
7676

7777
private static void ShowLicenseIfNeeded()
7878
{
79-
if ( ShouldShowLicense())
79+
if (ShouldShowLicense())
8080
{
8181
var frm = new LicenseForm()
8282
{
@@ -202,7 +202,7 @@ private static void ReportError(string message)
202202
{
203203
WorkingDirectory = Path.GetDirectoryName(assemblyLocation),
204204
FileName = "ErrorReport.exe",
205-
Arguments = Strings.EscapeCommandLineArg(url) + " " +Strings.EscapeCommandLineArg(message),
205+
Arguments = Strings.EscapeCommandLineArg(url) + " " + Strings.EscapeCommandLineArg(message),
206206
WindowStyle = ProcessWindowStyle.Hidden
207207
};
208208

src/QSP/UI/Forms/LicenseForm.Designer.cs

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/QSP/Updates/Utilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static bool ShouldShowLicense()
5353

5454
var ver = GetVersions();
5555
var prevTxt = Path.Combine("..", ver.Backup, "LICENSE.txt");
56-
return File.ReadAllText(prevTxt) == File.ReadAllText("LICENSE.txt");
56+
return File.ReadAllText(prevTxt) != File.ReadAllText("LICENSE.txt");
5757
}
5858
catch
5959
{

0 commit comments

Comments
 (0)