Check if the selected path exists: histories in recent file list may be deleted

This commit is contained in:
Paddy Xu
2017-05-11 22:44:10 +03:00
parent eef76468c4
commit c97f6b0c8a

View File

@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -27,6 +28,8 @@ namespace QuickLook
var path = GetCurrentSelection();
if (string.IsNullOrEmpty(path))
return;
if (!Directory.Exists(path) && !File.Exists(path))
return;
var matchedPlugin = PluginManager.GetInstance().FindMatch(path);