File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments