File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ private static async void Connection_RequestReceived(AppServiceConnection sender
156156 var arguments = ( string ) args . Request . Message [ "Arguments" ] ;
157157 var localSettings = Windows . Storage . ApplicationData . Current . LocalSettings ;
158158
159+ Logger . Info ( $ "Argument: { arguments } ") ;
160+
159161 if ( arguments == "Terminate" )
160162 {
161163 // Exit fulltrust process (UWP is closed or suspended)
Original file line number Diff line number Diff line change 33using System . IO . Pipes ;
44using System . Security . Principal ;
55using Windows . Storage ;
6+ using NLog ;
67
78namespace FilesFullTrust
89{
910 internal static class QuickLook
1011 {
12+ private static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
13+
1114 public static void ToggleQuickLook ( string path )
1215 {
16+ Logger . Info ( "Toggle QuickLook" ) ;
17+
1318 string PipeName = "QuickLook.App.Pipe." + WindowsIdentity . GetCurrent ( ) . User ? . Value ;
1419 string Toggle = "QuickLook.App.PipeMessages.Toggle" ;
1520
@@ -53,7 +58,10 @@ static int QuickLookServerAvailable()
5358 }
5459 }
5560
56- localSettings . Values [ "quicklook_enabled" ] = QuickLookServerAvailable ( ) != 0 ;
61+ var result = QuickLookServerAvailable ( ) ;
62+
63+ Logger . Info ( $ "QuickLook detected: { result != 0 } ") ;
64+ localSettings . Values [ "quicklook_enabled" ] = result != 0 ;
5765 }
5866 }
5967}
Original file line number Diff line number Diff line change 3535using Windows . UI . Xaml . Input ;
3636using Windows . UI . Xaml . Media ;
3737using Windows . UI . Xaml . Media . Animation ;
38+ using NLog ;
3839using static Files . Dialogs . ConfirmDeleteDialog ;
3940
4041namespace Files . Interacts
4142{
4243 public class Interaction
4344 {
45+ private static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
46+
4447 private readonly IShellPage CurrentInstance ;
4548 private readonly InstanceTabsView instanceTabsView ;
4649
@@ -1166,6 +1169,7 @@ public async void ToggleQuickLook()
11661169 {
11671170 var clickedOnItem = CurrentInstance . ContentPage . SelectedItem ;
11681171
1172+ Logger . Info ( "Toggle QuickLook" ) ;
11691173 Debug . WriteLine ( "Toggle QuickLook" ) ;
11701174 if ( App . Connection != null )
11711175 {
You can’t perform that action at this time.
0 commit comments