mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 20:43:23 +08:00
feat: 自定义文件,高级汉化 社区输入法支持
This commit is contained in:
@ -28,10 +28,11 @@ class AdvancedLocalizationUI extends HookConsumerWidget {
|
||||
onSwitchFile() async {
|
||||
final sb = await showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) => const LocalizationFromFileDialogUI(),
|
||||
builder: (BuildContext context) =>
|
||||
const LocalizationFromFileDialogUI(isInAdvancedMode: true),
|
||||
);
|
||||
if (sb is StringBuffer) {
|
||||
model.setCustomizeGlobalIni(sb.toString());
|
||||
if (sb is (StringBuffer, bool)) {
|
||||
model.setCustomizeGlobalIni(sb.$1.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@ -106,8 +107,8 @@ class AdvancedLocalizationUI extends HookConsumerWidget {
|
||||
child: Text(S.current
|
||||
.home_localization_advanced_action_install),
|
||||
),
|
||||
onPressed: () async {
|
||||
await model.doInstall().unwrap(context: context);
|
||||
onPressed: () {
|
||||
model.onInstall(context);
|
||||
}),
|
||||
const SizedBox(width: 12),
|
||||
],
|
||||
|
Reference in New Issue
Block a user