From 4379c167b4f0c1f1b9c96af37b86c38f6799162a Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Sat, 29 Jul 2023 00:28:29 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=9D=E3=83=BC=E3=83=88?= =?UTF-8?q?=E6=99=82=E3=81=AE=E3=83=80=E3=82=A4=E3=82=A2=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=81=AE=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/repository/import_export_repository.dart | 2 ++ .../import_export_page/folder_select_dialog.dart | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/repository/import_export_repository.dart b/lib/repository/import_export_repository.dart index 96d8ed4ab..c91a1b126 100644 --- a/lib/repository/import_export_repository.dart +++ b/lib/repository/import_export_repository.dart @@ -29,6 +29,7 @@ class ImportExportRepository extends ChangeNotifier { builder: (context2) => FolderSelectDialog( account: account, fileShowTarget: "miria.json.unknown", + confirmationText: "このフォルダーからインポートする", ), ); if (folders == null) return; @@ -116,6 +117,7 @@ class ImportExportRepository extends ChangeNotifier { builder: (context2) => FolderSelectDialog( account: account, fileShowTarget: "miria.json.unknown", + confirmationText: "このフォルダーに保存する", ), ); if (folders == null) return; diff --git a/lib/view/settings_page/import_export_page/folder_select_dialog.dart b/lib/view/settings_page/import_export_page/folder_select_dialog.dart index 94c7ab7ea..46e6e8ca5 100644 --- a/lib/view/settings_page/import_export_page/folder_select_dialog.dart +++ b/lib/view/settings_page/import_export_page/folder_select_dialog.dart @@ -9,11 +9,13 @@ import 'package:misskey_dart/misskey_dart.dart'; class FolderSelectDialog extends ConsumerStatefulWidget { final Account account; final String? fileShowTarget; + final String confirmationText; const FolderSelectDialog({ super.key, required this.account, required this.fileShowTarget, + required this.confirmationText, }); @override @@ -29,7 +31,7 @@ class FolderSelectDialogState extends ConsumerState { return AlertDialog( title: Column( children: [ - const Text("フォルダ選択"), + const Text("フォルダー選択"), Row( children: [ if (path.isNotEmpty) @@ -120,7 +122,7 @@ class FolderSelectDialogState extends ConsumerState { onPressed: () { Navigator.of(context).pop(path); }, - child: const Text("このフォルダーに保存する"), + child: Text(widget.confirmationText), ) ], );