Skip to content

Commit 2f52c1a

Browse files
committed
Improve code quality
1 parent 56d6234 commit 2f52c1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ private static void IndicateDeletion(string filePathTodelete)
139139
public void PreStartCleanUpAfterPortabilityUpdate()
140140
{
141141
// 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;
144144

145145
// Get full path to the .dead files for each case
146146
var portableDataDeleteFilePath = Path.Combine(portableDataDir, DataLocation.DeletionIndicatorFile);

Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public List<int> ScreenNumbers
123123
}
124124

125125
// 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();
127127

128128
public bool PortableMode
129129
{

0 commit comments

Comments
 (0)