fix: block page state

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-07 13:39:57 +08:00
parent 6d89b7769e
commit a8cfbb12fd

View File

@@ -67,11 +67,13 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
'$_blockServer/api/status/uptime', '$_blockServer/api/status/uptime',
) )
.then((res) { .then((res) {
setState(() { if (mounted) {
_serverStatus = res.statusCode == 200 && setState(() {
res.data is String && _serverStatus = res.statusCode == 200 &&
Utils.isStringNumeric(res.data); res.data is String &&
}); Utils.isStringNumeric(res.data);
});
}
}); });
} }