Skip to content

Commit

Permalink
Update src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs
Browse files Browse the repository at this point in the history
Update SeerProProvider.cs

Update src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs

Co-Authored-By: 0x5bfa <62196528+0x5bfa@users.noreply.github.com>
  • Loading branch information
yaira2 and 0x5bfa committed May 9, 2024
1 parent 30c815a commit 9ec9987
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task TogglePreviewPopupAsync(string path)
public async Task SwitchPreviewAsync(string path)
{
// Close preview window is track selection setting is disabled
if (!isTrackSelectionSettingEnabled && !string.IsNullOrEmpty(CurrentPath))
if (!IsTrackSelectionSettingEnabled && !string.IsNullOrEmpty(CurrentPath))
{
await TogglePreviewPopupAsync(CurrentPath);
return;
Expand All @@ -52,15 +52,15 @@ public async Task<bool> DetectAvailability()
return handle != IntPtr.Zero && handle.ToInt64() != -1;
}

private bool? _isTrackSelectionSettingEnabledCache;
private bool isTrackSelectionSettingEnabled
private bool? _IsTrackSelectionSettingEnabledCache;
private bool IsTrackSelectionSettingEnabled
{
get
{
if (_isTrackSelectionSettingEnabledCache is null)
_isTrackSelectionSettingEnabledCache = DetectTrackSelectionSetting().Result;
if (_IsTrackSelectionSettingEnabledCache is null)
_IsTrackSelectionSettingEnabledCache = DetectTrackSelectionSetting().Result;

return _isTrackSelectionSettingEnabledCache.Value;
return _IsTrackSelectionSettingEnabledCache.Value;
}
}

Expand Down

0 comments on commit 9ec9987

Please sign in to comment.