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
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 ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments