From 9ec9987e070b6b82605da65424b9946d48017ce5 Mon Sep 17 00:00:00 2001 From: Yair <39923744+yaira2@users.noreply.github.com> Date: Thu, 9 May 2024 09:51:25 -0700 Subject: [PATCH] Update src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs Update SeerProProvider.cs Update src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs Co-Authored-By: 0x5bfa <62196528+0x5bfa@users.noreply.github.com> --- .../PreviewPopupProviders/SeerProProvider.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs b/src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs index b41adb095ba0..4132a1359cc1 100644 --- a/src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs +++ b/src/Files.App/Services/PreviewPopupProviders/SeerProProvider.cs @@ -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; @@ -52,15 +52,15 @@ public async Task 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; } }