From 63e5de7384806d4a7e2a01e4f9f2733a318dd611 Mon Sep 17 00:00:00 2001 From: Lior Banai Date: Fri, 15 Sep 2023 19:55:17 +0300 Subject: [PATCH] Refactor file association to use data provider and not data factory #1843 --- Analogy/Forms/MainForm.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Analogy/Forms/MainForm.cs b/Analogy/Forms/MainForm.cs index 95440d0c..a9189955 100644 --- a/Analogy/Forms/MainForm.cs +++ b/Analogy/Forms/MainForm.cs @@ -676,6 +676,7 @@ private async Task OpenOfflineFileWithSpecificDataProvider(string[] files) RibbonPage? page = null; if (fc.Any()) { + Settings.LastOpenedDataProvider = fc.First().Factory.FactoryId; page = Mapping.TryGetValue(fc.First().Factory.FactoryId, out RibbonPage? value) ? value : null;