This commit is contained in:
xkeyC 2024-05-05 21:28:53 +08:00
parent 9af96a2061
commit 0920696444
2 changed files with 2 additions and 1 deletions

View File

@ -242,6 +242,7 @@ class Unp4kCModel extends _$Unp4kCModel {
final exec = "$execDir\\unp4kc.exe";
final r = await Process.run(exec, args);
if (r.exitCode != 0) {
Process.killPid(r.pid);
throw Exception(
"error: ${r.exitCode} , info= ${r.stdout} , err= ${r.stderr}");
}

View File

@ -43,7 +43,7 @@ class LocalizationFromFileDialogUI extends HookConsumerWidget {
return ContentDialog(
constraints: BoxConstraints(
maxWidth: selectedStringBuffer.value == null
? 420
? MediaQuery.of(context).size.width * .5
: MediaQuery.of(context).size.width * .75,
maxHeight: MediaQuery.of(context).size.height * .8,
),