Change method name for cleaning up after portability update

Make intentions clearer
This commit is contained in:
Jeremy Wu 2020-03-06 23:44:36 +11:00
parent ef1b52122e
commit 930ceef55c
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ namespace Wox.Core.Configuration
using (StreamWriter sw = File.CreateText(filePathTodelete + "\\" + DataLocation.DeletionIndicatorFile)){}
}
public void CleanUpFolderAfterPortabilityUpdate()
public void PreStartCleanUpAfterPortabilityUpdate()
{
var portableDataPath = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");
var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Wox");

View file

@ -48,7 +48,7 @@ namespace Wox
{
Stopwatch.Normal("|App.OnStartup|Startup cost", () =>
{
_portable.CleanUpFolderAfterPortabilityUpdate();
_portable.PreStartCleanUpAfterPortabilityUpdate();
Log.Info("|App.OnStartup|Begin Wox startup ----------------------------------------------------");
Log.Info($"|App.OnStartup|Runtime info:{ErrorReporting.RuntimeInfo()}");