Explorar el Código

Fixed bug with DigitalFormDocumentFactory not saving documents in a database-specific way

Kenric Nugteren hace 2 meses
padre
commit
10039f469a
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      inabox.wpf/DigitalForms/WpfDigitalFormDocumentHandler.cs

+ 3 - 1
inabox.wpf/DigitalForms/WpfDigitalFormDocumentHandler.cs

@@ -1,11 +1,13 @@
 using System;
+using System.IO;
+using InABox.Clients;
 using InABox.Core;
 
 namespace InABox.DynamicGrid;
 
 public class WpfDigitalFormDocumentHandler : DigitalFormDocumentHandler
 {
-    protected override string CachePath => CoreUtils.GetPath();
+    protected override string CachePath => Path.Combine(CoreUtils.GetPath(), ClientFactory.DatabaseID.ToString());
 
     private readonly Func<bool> _connected;
     protected override bool IsConnected => _connected?.Invoke() ?? true;