Skip to content

Commit c12a0e3

Browse files
author
Yair Aichenbaum
committed
Fixed QuickLook integration
1 parent 574c339 commit c12a0e3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Files/View Models/SettingsViewModel.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using System.Linq;
1313
using System.Reflection;
1414
using System.Runtime.CompilerServices;
15+
using Windows.ApplicationModel;
1516
using Windows.Storage;
1617
using Windows.UI;
1718
using Windows.UI.ViewManagement;
@@ -35,6 +36,7 @@ public SettingsViewModel()
3536
DetectOneDrivePreference();
3637
DetectDateTimeFormat();
3738
PinSidebarLocationItems();
39+
DetectQuickLook();
3840

3941
DrivesManager = new DrivesManager();
4042

@@ -43,6 +45,13 @@ public SettingsViewModel()
4345
LoadTerminalApps();
4446
}
4547

48+
public async void DetectQuickLook()
49+
{
50+
// Detect QuickLook
51+
localSettings.Values["Arguments"] = "StartupTasks";
52+
await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
53+
}
54+
4655
private void PinSidebarLocationItems()
4756
{
4857
AddDefaultLocations();

0 commit comments

Comments
 (0)