Skip to content

Commit

Permalink
Fixed an error in opening the update download link (fix #538)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Norseman committed Mar 2, 2024
1 parent 3e7df7a commit 1d874f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/GKCore/GKCore/GKUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static void LoadExtFile(string fileName, string args = "")
if (File.Exists(fileName)) {
Process.Start(new ProcessStartInfo("file://" + fileName) { UseShellExecute = true, Arguments = args });
} else {
Process.Start(fileName);
Process.Start(new ProcessStartInfo(fileName) { UseShellExecute = true });
}
#endif
#endif
Expand Down
5 changes: 2 additions & 3 deletions projects/GKCore/GKCore/UpdateMan.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* "GEDKeeper", the personal genealogical database editor.
* Copyright (C) 2009-2023 by Sergey V. Zhdanovskih.
* Copyright (C) 2009-2024 by Sergey V. Zhdanovskih.
*
* This file is part of "GEDKeeper".
*
Expand All @@ -19,7 +19,6 @@
*/

using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Threading;
Expand Down Expand Up @@ -97,7 +96,7 @@ private static async void WorkerMethod()
#if !CI_MODE
string question = LangMan.LS(LSID.UpdateToLatestVersion, curVersion, newVersion);
if (await AppHost.StdDialogs.ShowQuestion(question)) {
Process.Start(url);
GKUtils.LoadExtFile(url);
}
#endif
}
Expand Down
1 change: 1 addition & 0 deletions projects/GKv3/GEDKeeper3.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "locales", "locales", "{4AF8EEE8-8592-420C-B5C5-E6DDBA389BA1}"
ProjectSection(SolutionItems) = preProject
..\..\locales\Afrikaans.lng = ..\..\locales\Afrikaans.lng
..\..\locales\Belarusian.lng = ..\..\locales\Belarusian.lng
..\..\locales\Chinese Simplified.lng = ..\..\locales\Chinese Simplified.lng
..\..\locales\czech.lng = ..\..\locales\czech.lng
Expand Down

0 comments on commit 1d874f1

Please sign in to comment.