From 855d066c5b63799cace9dafc310d6e4f86bf0af9 Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Sat, 26 Oct 2024 16:25:22 +0200 Subject: [PATCH] Fix archive importing --- app/lib/services/import.dart | 6 ++---- metadata/en-US/changelogs/120.txt | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/lib/services/import.dart b/app/lib/services/import.dart index fcb96e52aac0..b5e7343a6583 100644 --- a/app/lib/services/import.dart +++ b/app/lib/services/import.dart @@ -764,11 +764,9 @@ class ImportService { for (final file in archive) { const fileExtension = '.bfly'; if (!file.name.endsWith(fileExtension)) continue; - final document = await importBfly(file.content); + final document = await importBfly(file.content, advanced: false); if (document != null) { - fileSystem.createFile( - file.name.substring(0, file.name.length - fileExtension.length), - document); + fileSystem.createFile(file.name, document); } } return true; diff --git a/metadata/en-US/changelogs/120.txt b/metadata/en-US/changelogs/120.txt index 16eef40c83f8..f97bd2c8d083 100644 --- a/metadata/en-US/changelogs/120.txt +++ b/metadata/en-US/changelogs/120.txt @@ -6,5 +6,6 @@ * Fix directory deletion in native file system * Fix property view logic * Fix property view ui padding +* Fix archive importing Read more here: https://linwood.dev/butterfly/2.3.0-beta.0 \ No newline at end of file