mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Test save error
This commit is contained in:
parent
f6e3608f72
commit
2d6667bb53
1 changed files with 8 additions and 4 deletions
|
|
@ -180,20 +180,24 @@ namespace Flow.Launcher.Infrastructure.Storage
|
|||
|
||||
public void Save()
|
||||
{
|
||||
string serialized = JsonSerializer.Serialize(Data,
|
||||
throw new NotImplementedException("Save error");
|
||||
|
||||
/*string serialized = JsonSerializer.Serialize(Data,
|
||||
new JsonSerializerOptions { WriteIndented = true });
|
||||
|
||||
File.WriteAllText(TempFilePath, serialized);
|
||||
|
||||
AtomicWriteSetting();
|
||||
AtomicWriteSetting();*/
|
||||
}
|
||||
|
||||
public async Task SaveAsync()
|
||||
{
|
||||
await using var tempOutput = File.OpenWrite(TempFilePath);
|
||||
throw new NotImplementedException("SaveAsync error");
|
||||
|
||||
/*await using var tempOutput = File.OpenWrite(TempFilePath);
|
||||
await JsonSerializer.SerializeAsync(tempOutput, Data,
|
||||
new JsonSerializerOptions { WriteIndented = true });
|
||||
AtomicWriteSetting();
|
||||
AtomicWriteSetting();*/
|
||||
}
|
||||
|
||||
private void AtomicWriteSetting()
|
||||
|
|
|
|||
Loading…
Reference in a new issue