From 83fda5ae45777451ed57917ced57ff7a6f0d7593 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Tue, 28 Nov 2023 16:20:38 +0800 Subject: [PATCH] Fix bug --- lib/viewer/single.dart | 1 + 1 file changed, 1 insertion(+) 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) {