From fd4f0f631bcb0ee8df47bccdbf1e375d7d181380 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 5 Mar 2020 23:25:15 +1100 Subject: [PATCH] Add method used to indicate deletion of data location .dead file add --- Wox.Core/Configuration/Portable.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Wox.Core/Configuration/Portable.cs b/Wox.Core/Configuration/Portable.cs index 7a4f685ad..5f8634310 100644 --- a/Wox.Core/Configuration/Portable.cs +++ b/Wox.Core/Configuration/Portable.cs @@ -129,6 +129,12 @@ namespace Wox.Core.Configuration key.SetValue("DisplayIcon", Constant.ApplicationDirectory + "\\app.ico", RegistryValueKind.String); portabilityUpdater.CreateUninstallerRegistryEntry().Wait(); + + public void IndicateDeletion(string filePathTodelete) + { + using (StreamWriter sw = File.CreateText(filePathTodelete + "\\.dead")){} + } + public void CleanUpFolderAfterPortabilityUpdate() { var portableDataPath = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");