File tree 3 files changed +15
-1
lines changed
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
156
156
var arguments = ( string ) args . Request . Message [ "Arguments" ] ;
157
157
var localSettings = Windows . Storage . ApplicationData . Current . LocalSettings ;
158
158
159
+ Logger . Info ( $ "Argument: { arguments } ") ;
160
+
159
161
if ( arguments == "Terminate" )
160
162
{
161
163
// Exit fulltrust process (UWP is closed or suspended)
Original file line number Diff line number Diff line change 3
3
using System . IO . Pipes ;
4
4
using System . Security . Principal ;
5
5
using Windows . Storage ;
6
+ using NLog ;
6
7
7
8
namespace FilesFullTrust
8
9
{
9
10
internal static class QuickLook
10
11
{
12
+ private static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
13
+
11
14
public static void ToggleQuickLook ( string path )
12
15
{
16
+ Logger . Info ( "Toggle QuickLook" ) ;
17
+
13
18
string PipeName = "QuickLook.App.Pipe." + WindowsIdentity . GetCurrent ( ) . User ? . Value ;
14
19
string Toggle = "QuickLook.App.PipeMessages.Toggle" ;
15
20
@@ -53,7 +58,10 @@ static int QuickLookServerAvailable()
53
58
}
54
59
}
55
60
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 ;
57
65
}
58
66
}
59
67
}
Original file line number Diff line number Diff line change 35
35
using Windows . UI . Xaml . Input ;
36
36
using Windows . UI . Xaml . Media ;
37
37
using Windows . UI . Xaml . Media . Animation ;
38
+ using NLog ;
38
39
using static Files . Dialogs . ConfirmDeleteDialog ;
39
40
40
41
namespace Files . Interacts
41
42
{
42
43
public class Interaction
43
44
{
45
+ private static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
46
+
44
47
private readonly IShellPage CurrentInstance ;
45
48
private readonly InstanceTabsView instanceTabsView ;
46
49
@@ -1166,6 +1169,7 @@ public async void ToggleQuickLook()
1166
1169
{
1167
1170
var clickedOnItem = CurrentInstance . ContentPage . SelectedItem ;
1168
1171
1172
+ Logger . Info ( "Toggle QuickLook" ) ;
1169
1173
Debug . WriteLine ( "Toggle QuickLook" ) ;
1170
1174
if ( App . Connection != null )
1171
1175
{
You can’t perform that action at this time.
0 commit comments