File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Flow.Launcher.Infrastructure/Storage Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ public BinaryStorage(string filename)
45
45
[ Obsolete ( "This constructor is obsolete. Use BinaryStorage(string filename) instead." ) ]
46
46
public BinaryStorage ( string filename , string directoryPath = null ! )
47
47
{
48
- directoryPath ??= DataLocation . CacheDirectory ;
49
- FilesFolders . ValidateDirectory ( directoryPath ) ;
48
+ DirectoryPath = directoryPath ?? DataLocation . CacheDirectory ;
49
+ FilesFolders . ValidateDirectory ( DirectoryPath ) ;
50
50
51
- FilePath = Path . Combine ( directoryPath , $ "{ filename } { FileSuffix } ") ;
51
+ FilePath = Path . Combine ( DirectoryPath , $ "{ filename } { FileSuffix } ") ;
52
52
}
53
53
54
54
public async ValueTask < T > TryLoadAsync ( T defaultData )
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ namespace Flow.Launcher.Infrastructure.Storage
17
17
18
18
public FlowLauncherJsonStorage ( )
19
19
{
20
- var directoryPath = Path . Combine ( DataLocation . DataDirectory ( ) , DirectoryName ) ;
21
- FilesFolders . ValidateDirectory ( directoryPath ) ;
20
+ DirectoryPath = Path . Combine ( DataLocation . DataDirectory ( ) , DirectoryName ) ;
21
+ FilesFolders . ValidateDirectory ( DirectoryPath ) ;
22
22
23
23
var filename = typeof ( T ) . Name ;
24
- FilePath = Path . Combine ( directoryPath , $ "{ filename } { FileSuffix } ") ;
24
+ FilePath = Path . Combine ( DirectoryPath , $ "{ filename } { FileSuffix } ") ;
25
25
}
26
26
27
27
public new void Save ( )
You can’t perform that action at this time.
0 commit comments