Lots of small tweaks (#5960)

This commit is contained in:
Clint Rutkas
2020-08-14 11:50:14 -07:00
committed by GitHub
parent b8d720d06f
commit e4f9c02d11
13 changed files with 254 additions and 254 deletions

View File

@@ -18,7 +18,7 @@ namespace PowerLauncher
// Watch for /Local/Microsoft/PowerToys/Launcher/Settings.json changes
public class SettingsWatcher : BaseModel
{
private static int MAX_RETRIES = 10;
private static int _maxRetries = 10;
private static object _watcherSyncObject = new object();
private FileSystemWatcher _watcher;
private Settings _settings;
@@ -96,7 +96,7 @@ namespace PowerLauncher
// This should be changed to properly synch with the settings app instead of retrying.
catch (IOException e)
{
if (retryCount > MAX_RETRIES)
if (retryCount > _maxRetries)
{
retry = false;
}