Skip to content

Commit

Permalink
Fixed bug where auto save pop-ups would appear when the settings.bin …
Browse files Browse the repository at this point in the history
…error appears.

Fixed bug where auto save pop-ups would appear when the settings.bin error appears.
  • Loading branch information
jluvisi2021 committed Jul 26, 2020
1 parent 9a661d7 commit e90d734
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions PrivateGuard/PrivateGuard/Database Tools/ColorTheme.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
Expand Down
2 changes: 1 addition & 1 deletion PrivateGuard/PrivateGuard/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void SelectButton_Click(object sender, RoutedEventArgs e)

private void OpenFileButton_Click(object sender, RoutedEventArgs e)
{
string a = string.Empty;
var a = string.Empty;

if (string.IsNullOrWhiteSpace(FileKeyField.Password))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ public void SetupTheme()
}
catch (Exception)
{
MessageBox.Show("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nCRITICAL ERROR STARTING APPLICATION.\nWe have detected that you are running version 1.0.6 or greater.\nWe were unable to find the values for font colors in the local settings file.\nThis may be because you have just upgraded from an older version.\n If this is the case please regenerate your settings file by deleting \"settings.bin\" at " + MainWindow.SETTINGS_DIR + ".\nTo read more visit: https://github.com/jluvisi2021/PrivateGuard/wiki \nThe Application will not start until this issue is solved.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -", "Critical Error.", MessageBoxButton.OK, MessageBoxImage.Stop);
// Stop auto save or idle timer popups from showing.
_isAutoSaveEnabled = false;
_isIdleTimerEnabled = false;
Close();
MessageBox.Show("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nCRITICAL ERROR STARTING APPLICATION.\nWe have detected that you are running version 1.0.6 or greater.\nWe were unable to find the values for font colors in the local settings file.\nThis may be because you have just upgraded from an older version.\n If this is the case please regenerate your settings file by deleting \"settings.bin\" at " + MainWindow.SETTINGS_DIR + ".\nTo read more visit: https://github.com/jluvisi2021/PrivateGuard/wiki \nThe Application will not start until this issue is solved.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -", "Critical Error.", MessageBoxButton.OK, MessageBoxImage.Stop);
}

}
Expand Down

0 comments on commit e90d734

Please sign in to comment.