Skip to content

Commit 930ceef

Browse files
committed
Change method name for cleaning up after portability update
Make intentions clearer
1 parent ef1b521 commit 930ceef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Wox.Core/Configuration/Portable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void IndicateDeletion(string filePathTodelete)
136136
using (StreamWriter sw = File.CreateText(filePathTodelete + "\\" + DataLocation.DeletionIndicatorFile)){}
137137
}
138138

139-
public void CleanUpFolderAfterPortabilityUpdate()
139+
public void PreStartCleanUpAfterPortabilityUpdate()
140140
{
141141
var portableDataPath = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");
142142
var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Wox");

Wox/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private void OnStartup(object sender, StartupEventArgs e)
4848
{
4949
Stopwatch.Normal("|App.OnStartup|Startup cost", () =>
5050
{
51-
_portable.CleanUpFolderAfterPortabilityUpdate();
51+
_portable.PreStartCleanUpAfterPortabilityUpdate();
5252

5353
Log.Info("|App.OnStartup|Begin Wox startup ----------------------------------------------------");
5454
Log.Info($"|App.OnStartup|Runtime info:{ErrorReporting.RuntimeInfo()}");

0 commit comments

Comments
 (0)