add catch err

This commit is contained in:
csf
2022-12-20 23:55:54 +09:00
parent c67b952869
commit 58c1be39c8
4 changed files with 12 additions and 5 deletions

View File

@@ -696,7 +696,7 @@ class _RemotePageState extends State<RemotePage> {
gFFI.dialogManager.show((setState, close) {
void setMode(String? v) async {
await bind.sessionPeerOption(
id: widget.id, name: "keyboard-mode", value: v ?? "");
id: widget.id, name: "keyboard-mode", value: v ?? "");
setState(() => current = v ?? '');
Future.delayed(Duration(milliseconds: 300), close);
}
@@ -978,7 +978,9 @@ void showOptions(
final h265 = codecsJson['h265'] ?? false;
codecs.add(h264);
codecs.add(h265);
} finally {}
} catch (e) {
debugPrint("Show Codec Preference err=$e");
}
}
dialogManager.show((setState, close) {