mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-29 17:02:05 +13:00
Removed warning notification limit
This commit is contained in:
parent
9867febde3
commit
ce501604ea
1 changed files with 0 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue