Skip to content

Commit

Permalink
Merge pull request #68 from PKBeam/66-bug-old-versions-do-not-exit-le…
Browse files Browse the repository at this point in the history
…aves-a-thread-with-no-purpose

Bug: Old versions do not exit, leaves a thread with no purpose
  • Loading branch information
PKBeam authored Aug 9, 2023
2 parents 2e7c9f0 + ea23907 commit 606bde0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,24 @@ public partial class App : Application {

// for testing cultures
//CultureInfo.CurrentCulture = CultureInfo.GetCultureInfoByIetfLanguageTag("fr-FR");
}

try {
if (UserSettings.GetValueForKey(UserSettingsKey.CheckForUpdates) == true.ToString()) {
protected override void OnStartup(StartupEventArgs e)
{
try
{
if (UserSettings.GetBoolForKey(UserSettingsKey.CheckForUpdates))
{
//#if !DEBUG
Helper.CheckForUpdates();
//#endif
}
} catch {
}
catch
{
Trace.WriteLine("INFO: Could not check for updates.");
}
base.OnStartup(e);
}

public void SetDiscordRPC(bool enable) {
Expand Down

0 comments on commit 606bde0

Please sign in to comment.