From 806a79068c156f04c22a2aa5b553de081b947143 Mon Sep 17 00:00:00 2001 From: ArthurHeitmann <37270165+ArthurHeitmann@users.noreply.github.com> Date: Fri, 13 Dec 2024 19:05:04 +0100 Subject: [PATCH] fixes --- assets/help/mcd.md | 2 ++ lib/utils/utils.dart | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/help/mcd.md b/assets/help/mcd.md index 669959d..81c198f 100644 --- a/assets/help/mcd.md +++ b/assets/help/mcd.md @@ -4,6 +4,8 @@ Localized text for ui elements and subtitles. file extensions: mcd +Important: This requires a python installation and the python executable has to be in the PATH. First time initialization can take a couple of seconds. + ## Fonts MCD files use fonts that each have a unique id, ranging from 0 to 11. diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index 7189671..b891acf 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -607,8 +607,11 @@ Future exportDat(String datFolder, { bool checkForNesting = false, bool } } if (datExportDir.isEmpty) { + if (datExportPath != null) { + datExportDir = dirname(datExportPath); + } // select export path - if (exportDir.isEmpty) { + else if (exportDir.isEmpty) { var dir = await FilePicker.platform.getDirectoryPath( dialogTitle: "Select DAT export folder", );