File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Flow.Launcher.Infrastructure/UserSettings
Flow.Launcher/SettingPages/ViewModels Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ public static class DataLocation
7
7
{
8
8
public const string PortableFolderName = "UserData" ;
9
9
public const string DeletionIndicatorFile = ".dead" ;
10
- public static string PortableDataPath = Path . Combine ( Constant . ProgramDirectory , PortableFolderName ) ;
11
- public static string RoamingDataPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , "FlowLauncher" ) ;
10
+ public static readonly string PortableDataPath = Path . Combine ( Constant . ProgramDirectory , PortableFolderName ) ;
11
+ public static readonly string RoamingDataPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , "FlowLauncher" ) ;
12
12
public static string DataDirectory ( )
13
13
{
14
14
if ( PortableDataLocationInUse ( ) )
@@ -19,7 +19,8 @@ public static string DataDirectory()
19
19
20
20
public static bool PortableDataLocationInUse ( )
21
21
{
22
- if ( Directory . Exists ( PortableDataPath ) && ! File . Exists ( DeletionIndicatorFile ) )
22
+ if ( Directory . Exists ( PortableDataPath ) &&
23
+ ! File . Exists ( Path . Combine ( PortableDataPath , DeletionIndicatorFile ) ) )
23
24
return true ;
24
25
25
26
return false ;
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