From 4b70ec1914f4fd0d6080fcba195ea2d767019a34 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sat, 23 Nov 2024 22:45:25 +0800 Subject: [PATCH] bugfix --- lib/common/conf/const_conf.dart | 6 +++--- .../input_method/input_method_dialog_ui_model.dart | 2 +- lib/ui/settings/settings_ui_model.dart | 12 +++++++++--- pubspec.yaml | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/common/conf/const_conf.dart b/lib/common/conf/const_conf.dart index eb93507..22e7d31 100644 --- a/lib/common/conf/const_conf.dart +++ b/lib/common/conf/const_conf.dart @@ -1,7 +1,7 @@ class ConstConf { - static const String appVersion = "2.13.2"; - static const int appVersionCode = 60; - static const String appVersionDate = "2024-11-07"; + static const String appVersion = "2.13.3"; + static const int appVersionCode = 61; + static const String appVersionDate = "2024-11-23"; static const gameChannels = ["LIVE", "PTU", "EPTU", "TECH-PREVIEW", "HOTFIX"]; static const isMSE = String.fromEnvironment("MSE", defaultValue: "false") == "true"; diff --git a/lib/ui/home/input_method/input_method_dialog_ui_model.dart b/lib/ui/home/input_method/input_method_dialog_ui_model.dart index be0cb62..eb274a4 100644 --- a/lib/ui/home/input_method/input_method_dialog_ui_model.dart +++ b/lib/ui/home/input_method/input_method_dialog_ui_model.dart @@ -176,7 +176,7 @@ class InputMethodDialogUIModel extends _$InputMethodDialogUIModel { resultText = resultText.replaceFirst(firstChar, firstChar.toUpperCase()); } - _destTextCtrl?.text = "$content\n[en] $resultText"; + _destTextCtrl?.text = "$content \n[en] $resultText"; if (state.enableAutoCopy || webMessage) { Clipboard.setData(ClipboardData(text: _destTextCtrl?.text ?? "")); } diff --git a/lib/ui/settings/settings_ui_model.dart b/lib/ui/settings/settings_ui_model.dart index 9125011..a5d1861 100644 --- a/lib/ui/settings/settings_ui_model.dart +++ b/lib/ui/settings/settings_ui_model.dart @@ -155,9 +155,15 @@ class SettingsUIModel extends _$SettingsUIModel { final dir2 = Directory( "${appGlobalState.applicationSupportDir}/launcher_enhance_data"); if (!context.mounted) return; - await dir1.delete(recursive: true).unwrap(context: context); + if (await dir1.exists()) { + if (!context.mounted) return; + await dir1.delete(recursive: true).unwrap(context: context); + } if (!context.mounted) return; - await dir2.delete(recursive: true).unwrap(context: context); + if (await dir2.exists()) { + if (!context.mounted) return; + await dir2.delete(recursive: true).unwrap(context: context); + } _initState(); } } @@ -221,4 +227,4 @@ class SettingsUIModel extends _$SettingsUIModel { userBox.get("isUseInternalDNS", defaultValue: false); state = state.copyWith(isUseInternalDNS: isUseInternalDNS); } -} \ No newline at end of file +} diff --git a/pubspec.yaml b/pubspec.yaml index b2b2933..88a41a8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -105,7 +105,7 @@ msix_config: publisher_display_name: xkeyC Studio identity_name: 56575xkeyC.MSE publisher: CN=B54C897B-C263-4680-B6AB-4913C603DF87 - msix_version: 2.13.2.0 + msix_version: 2.13.3.0 logo_path: ./assets/app_logo.png capabilities: internetClient,allowElevation languages: zh-cn