From 9d9750dd81e629c1b92fdeb6423c17323c1999e7 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 12 Feb 2023 09:27:57 +0100 Subject: [PATCH] Fixed path not copied --- lib/dialogs/copy_dialog.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dialogs/copy_dialog.dart b/lib/dialogs/copy_dialog.dart index a539849..cf4a32c 100644 --- a/lib/dialogs/copy_dialog.dart +++ b/lib/dialogs/copy_dialog.dart @@ -43,7 +43,6 @@ copyDialog(context, item, Function(String, {bool loading}) statusMsg) { // Error catching if (results != ' ') { statusMsg(results, loading: false); - return; } // Copy settings String? startPath = prefs.getString('StartPath_$item') ?? ''; @@ -53,8 +52,7 @@ copyDialog(context, item, Function(String, {bool loading}) statusMsg) { prefs.setString('StartUser_$inputText', startName); // Save distro path prefs.setString('Path_$inputText', defaultPath + inputText); - statusMsg( - 'donecopyinginstance-text'.i18n([distroLabel(item), inputText]), + statusMsg('donecopyinginstance-text'.i18n([item, inputText]), loading: false); } else { statusMsg('errorentername-text'.i18n(), loading: false);