Skip to content

Commit df66c45

Browse files
authored
Fix: Remove unnecessary log spam (#11933)
1 parent adde7d7 commit df66c45

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Files.App/Helpers/QuickLookHelpers.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ public static async Task ToggleQuickLook(string path, bool switchPreview = false
1818
bool isQuickLookAvailable = await DetectQuickLookAvailability();
1919

2020
if (isQuickLookAvailable == false)
21+
{
22+
App.Logger.Info($"QuickLook not detected!");
2123
return;
24+
}
2225

2326
string pipeName = $"QuickLook.App.Pipe.{WindowsIdentity.GetCurrent().User?.Value}";
2427
string message = switchPreview ? pipeMessageSwitch : pipeMessageToggle;
@@ -64,7 +67,6 @@ static async Task<int> QuickLookServerAvailable()
6467
try
6568
{
6669
var result = await QuickLookServerAvailable();
67-
App.Logger.Info($"QuickLook detected: {result != 0}");
6870
return result != 0;
6971
}
7072
catch (Exception ex)

src/Files.App/Strings/en-US/Resources.resw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2860,4 +2860,4 @@
28602860
<data name="Untagged" xml:space="preserve">
28612861
<value>Untagged</value>
28622862
</data>
2863-
</root>
2863+
</root>

src/Files.App/Views/MainPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,4 +311,4 @@
311311
</VisualStateGroup>
312312
</VisualStateManager.VisualStateGroups>
313313
</Border>
314-
</Page>
314+
</Page>

0 commit comments

Comments
 (0)