diff --git a/lib/viewer/single.dart b/lib/viewer/single.dart index 61d3648..9296098 100644 --- a/lib/viewer/single.dart +++ b/lib/viewer/single.dart @@ -107,6 +107,7 @@ class _SinglePageViewer extends State with ThemeModeWidget { @override Widget build(BuildContext context) { + tryInitApi(context); final isLoading = _error == null && (_data == null || _files == null); if (isLoading && !_isLoading) _fetchData(); if (_data == null || _files == null) {