mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: block page state
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user