mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 计算缓存大小更新界面异常
This commit is contained in:
@@ -34,7 +34,9 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
|
|
||||||
Future<void> getCacheSize() async {
|
Future<void> getCacheSize() async {
|
||||||
final res = await CacheManage().loadApplicationCache();
|
final res = await CacheManage().loadApplicationCache();
|
||||||
setState(() => cacheSize = res);
|
cacheSize = res;
|
||||||
|
if (!mounted) return;
|
||||||
|
setState(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -379,8 +381,7 @@ class AboutController extends GetxController {
|
|||||||
aPay() {
|
aPay() {
|
||||||
try {
|
try {
|
||||||
launchUrl(
|
launchUrl(
|
||||||
Uri.parse(
|
Uri.parse('https://pilipalanet.mysxl.cn/pilipalaxadmire'),
|
||||||
'https://pilipalanet.mysxl.cn/pilipalaxadmire'),
|
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user