in JetBrains.Etw.HostService.Updater/src/ViewModel/UpdateStatusViewModel.cs [28:38]
public IDisposable RunModalDialog()
{
Interlocked.Increment(ref myModalCounter);
myDispatcher.BeginInvoke(new Action(() => OnPropertyChanged(nameof(IsNotModalState))));
return new RunUpdateDisposable(() =>
{
Interlocked.Decrement(ref myModalCounter);
myDispatcher.BeginInvoke(new Action(() => OnPropertyChanged(nameof(IsNotModalState))));
});
}