Skip to content

Commit 4186bfd

Browse files
authored
perf: speed up Open Data Folder launch (#2009)
1 parent 0d795da commit 4186bfd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎QuickLook/TrayIconManager.cs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ private TrayIconManager()
6868
new TrayMenuItem()
6969
{
7070
Header = TranslationHelper.Get("Icon_OpenDataFolder"),
71-
Command = new RelayCommand(() => Process.Start("explorer.exe", SettingHelper.LocalDataPath)),
71+
Command = new RelayCommand(() => Process.Start(new ProcessStartInfo(SettingHelper.LocalDataPath)
72+
{
73+
UseShellExecute = true,
74+
Verb = "open",
75+
})),
7276
},
7377
_itemAutorun = new TrayMenuItem()
7478
{

0 commit comments

Comments
 (0)