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

@@ -982,6 +982,8 @@ class _FileManagerPageState extends State<FileManagerPage>
},
dismissOnClicked: true));
}
} catch (e) {
debugPrint("buildBread fetchDirectory err=$e");
} finally {
if (!isLocal) {
_ffi.dialogManager.dismissByTag(loadingTag);

View File

@@ -1032,7 +1032,9 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
final h265 = codecsJson['h265'] ?? false;
codecs.add(h264);
codecs.add(h265);
} finally {}
} catch (e) {
debugPrint("Show Codec Preference err=$e");
}
if (codecs.length == 2 && (codecs[0] || codecs[1])) {
displayMenu.add(MenuEntryRadios<String>(
text: translate('Codec Preference'),