Skip to content

Commit

Permalink
Fixed an issue with Check Update dialog blocking main application win…
Browse files Browse the repository at this point in the history
…dow startup.
  • Loading branch information
Brollyy committed Aug 7, 2023
1 parent 2e7c9f0 commit ea23907
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
@@ -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) {

0 comments on commit ea23907

Please sign in to comment.