Skip to content

Commit 31dd774

Browse files
committed
Update add comments change to internal
1 parent 83df0b3 commit 31dd774

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Wox.Core/Configuration/Portable.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public void DisablePortableMode()
2929
"after the restart your portable data profile will be deleted and roaming data profile kept");
3030

3131
portabilityUpdater.Dispose();
32-
// CHANGE TO PRIVATE/INTERNAL METHODS
3332

3433
UpdateManager.RestartApp();
3534
}
@@ -126,13 +125,18 @@ public void CreateUninstallerEntry()
126125
portabilityUpdater.CreateUninstallerRegistryEntry();
127126
}
128127

129-
public void IndicateDeletion(string filePathTodelete)
128+
internal void IndicateDeletion(string filePathTodelete)
130129
{
131130
using (StreamWriter sw = File.CreateText(filePathTodelete + "\\" + DataLocation.DeletionIndicatorFile)){}
132131
}
133132

133+
///<summary>
134+
///This method should be run at first before all methods during start up and should be run before determining which data location
135+
///will be used for Wox.
136+
///</summary>
134137
public void PreStartCleanUpAfterPortabilityUpdate()
135138
{
139+
// Specify here so this method does not rely on other environment variables to initialise
136140
var portableDataPath = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");
137141
var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Wox");
138142

0 commit comments

Comments
 (0)