File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Flow.Launcher.Core/Configuration
Flow.Launcher/SettingPages/ViewModels Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ private static void IndicateDeletion(string filePathTodelete)
139
139
public void PreStartCleanUpAfterPortabilityUpdate ( )
140
140
{
141
141
// Specify here so this method does not rely on other environment variables to initialise
142
- var portableDataDir = Path . Combine ( Directory . GetParent ( Assembly . GetExecutingAssembly ( ) . Location . NonNull ( ) ) . ToString ( ) , "UserData" ) ;
143
- var roamingDataDir = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , "FlowLauncher" ) ;
142
+ var portableDataDir = DataLocation . PortableDataPath ;
143
+ var roamingDataDir = DataLocation . RoamingDataPath ;
144
144
145
145
// Get full path to the .dead files for each case
146
146
var portableDataDeleteFilePath = Path . Combine ( portableDataDir , DataLocation . DeletionIndicatorFile ) ;
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public List<int> ScreenNumbers
123
123
}
124
124
125
125
// This is only required to set at startup. When portable mode enabled/disabled a restart is always required
126
- private static bool _portableMode = DataLocation . PortableDataLocationInUse ( ) ;
126
+ private static readonly bool _portableMode = DataLocation . PortableDataLocationInUse ( ) ;
127
127
128
128
public bool PortableMode
129
129
{
You can’t perform that action at this time.
0 commit comments