We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c246712 commit 7f63050Copy full SHA for 7f63050
Files.Launcher/Program.cs
@@ -80,6 +80,11 @@ private static void Main(string[] args)
80
watchers.Add(watcher);
81
}
82
83
+ // Preload context menu for better performace
84
+ // We query the context menu for the app's local folder
85
+ var preloadPath = ApplicationData.Current.LocalFolder.Path;
86
+ using var _ = Win32API.ContextMenu.GetContextMenuForFiles(new string[] { preloadPath }, Shell32.CMF.CMF_NORMAL);
87
+
88
// Connect to app service and wait until the connection gets closed
89
appServiceExit = new AutoResetEvent(false);
90
InitializeAppServiceConnection();
0 commit comments