mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Lots of small tweaks (#5960)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user