Skip to content

Commit

Permalink
Fix issue that prevents creating Connections.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperJMN committed Oct 17, 2023
1 parent 7368fbe commit 397d96b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/AvaloniaSyncer/AvaloniaSyncer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,4 @@
<PackageReference Include="Zafiro.FileSystem.Sftp" Version="4.0.27" />
<PackageReference Include="Zafiro.UI" Version="4.0.11" />
</ItemGroup>
<ItemGroup>
<Compile Update="Sections\Connections\Configuration\Sftp\SftpConfigurationView.axaml.cs">
<DependentUpon>SftpConfigurationView.axaml</DependentUpon>
</Compile>
<Compile Update="Sections\Synchronization\TopBar.axaml.cs">
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class ConnectionsRepository : IConnectionsRepository
private ConnectionsRepository(Maybe<ILogger> logger)
{
this.logger = logger;
store = new ConfigurationStore(() => File.OpenRead("Connections.json"), () => File.Open("Connections.json", FileMode.Truncate, FileAccess.Write));
store = new ConfigurationStore(() => File.OpenRead("Connections.json"), () => File.Open("Connections.json", FileMode.Create, FileAccess.Write));
}

public ConnectionsRepository(IEnumerable<IFileSystemConnection> connections, Maybe<ILogger> logger) : this(logger)
Expand Down

0 comments on commit 397d96b

Please sign in to comment.