File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 12
12
using System . Linq ;
13
13
using System . Reflection ;
14
14
using System . Runtime . CompilerServices ;
15
+ using Windows . ApplicationModel ;
15
16
using Windows . Storage ;
16
17
using Windows . UI ;
17
18
using Windows . UI . ViewManagement ;
@@ -35,6 +36,7 @@ public SettingsViewModel()
35
36
DetectOneDrivePreference ( ) ;
36
37
DetectDateTimeFormat ( ) ;
37
38
PinSidebarLocationItems ( ) ;
39
+ DetectQuickLook ( ) ;
38
40
39
41
DrivesManager = new DrivesManager ( ) ;
40
42
@@ -43,6 +45,13 @@ public SettingsViewModel()
43
45
LoadTerminalApps ( ) ;
44
46
}
45
47
48
+ public async void DetectQuickLook ( )
49
+ {
50
+ // Detect QuickLook
51
+ localSettings . Values [ "Arguments" ] = "StartupTasks" ;
52
+ await FullTrustProcessLauncher . LaunchFullTrustProcessForCurrentAppAsync ( ) ;
53
+ }
54
+
46
55
private void PinSidebarLocationItems ( )
47
56
{
48
57
AddDefaultLocations ( ) ;
You can’t perform that action at this time.
0 commit comments