We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822ab2d commit 595dd65Copy full SHA for 595dd65
CollapseLauncher/XAMLs/MainApp/MainWindow.xaml.cs
@@ -37,13 +37,13 @@ public sealed partial class MainWindow : Window
37
{
38
private static bool _isForceDisableIntro;
39
40
- private static readonly Lock CriticalOpLock = new Lock();
+ private static readonly Lock CriticalOpLock = new();
41
public static bool IsCriticalOpInProgress
42
43
get;
44
set
45
46
- lock (CriticalOpLock)
+ using (CriticalOpLock.EnterScope())
47
48
var lastValue = field;
49
field = value;
0 commit comments