mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 02:04:44 +08:00
bugfix
This commit is contained in:
@ -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 ?? ""));
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user