Removed warning notification limit

This commit is contained in:
Jaex 2022-01-10 00:33:19 +03:00
parent 9867febde3
commit ce501604ea

View file

@ -109,9 +109,6 @@ private static string HotkeysConfigFilePath
private static ManualResetEvent uploadersConfigResetEvent = new ManualResetEvent(false);
private static ManualResetEvent hotkeysConfigResetEvent = new ManualResetEvent(false);
private const int SettingsSaveFailWarningLimit = 3;
private static int settingsSaveFailWarningCount;
public static void LoadInitialSettings()
{
LoadApplicationConfig();
@ -155,8 +152,6 @@ public static void LoadApplicationConfig(bool fallbackSupport = true)
private static void Settings_SettingsSaveFailed(Exception e)
{
if (settingsSaveFailWarningCount == SettingsSaveFailWarningLimit) return;
string message;
if (e is UnauthorizedAccessException || e is FileNotFoundException)
@ -169,8 +164,6 @@ private static void Settings_SettingsSaveFailed(Exception e)
}
TaskHelpers.ShowNotificationTip(message, "ShareX - " + Resources.FailedToSaveSettings, 5000);
settingsSaveFailWarningCount++;
}
public static void LoadUploadersConfig(bool fallbackSupport = true)