From 397d96b246cf261c8294057fedef7e9a5ccc8693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Nieto?= Date: Tue, 17 Oct 2023 20:35:58 +0200 Subject: [PATCH] Fix issue that prevents creating Connections.json --- src/AvaloniaSyncer/AvaloniaSyncer.csproj | 8 -------- .../Sections/Connections/ConnectionsRepository.cs | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/AvaloniaSyncer/AvaloniaSyncer.csproj b/src/AvaloniaSyncer/AvaloniaSyncer.csproj index 3a7d4eb..a00b994 100644 --- a/src/AvaloniaSyncer/AvaloniaSyncer.csproj +++ b/src/AvaloniaSyncer/AvaloniaSyncer.csproj @@ -33,12 +33,4 @@ - - - SftpConfigurationView.axaml - - - %(Filename) - - \ No newline at end of file diff --git a/src/AvaloniaSyncer/Sections/Connections/ConnectionsRepository.cs b/src/AvaloniaSyncer/Sections/Connections/ConnectionsRepository.cs index 9f89d3f..087e0e9 100644 --- a/src/AvaloniaSyncer/Sections/Connections/ConnectionsRepository.cs +++ b/src/AvaloniaSyncer/Sections/Connections/ConnectionsRepository.cs @@ -21,7 +21,7 @@ internal class ConnectionsRepository : IConnectionsRepository private ConnectionsRepository(Maybe 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 connections, Maybe logger) : this(logger)