File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Flow.Launcher.Infrastructure/UserSettings Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ public static class DataLocation
77 {
88 public const string PortableFolderName = "UserData" ;
99 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" ) ;
1212 public static string DataDirectory ( )
1313 {
1414 if ( PortableDataLocationInUse ( ) )
@@ -19,7 +19,8 @@ public static string DataDirectory()
1919
2020 public static bool PortableDataLocationInUse ( )
2121 {
22- if ( Directory . Exists ( PortableDataPath ) && ! File . Exists ( DeletionIndicatorFile ) )
22+ if ( Directory . Exists ( PortableDataPath ) &&
23+ ! File . Exists ( Path . Combine ( PortableDataPath , DeletionIndicatorFile ) ) )
2324 return true ;
2425
2526 return false ;
You can’t perform that action at this time.
0 commit comments