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 {
|
||||
final res = await CacheManage().loadApplicationCache();
|
||||
setState(() => cacheSize = res);
|
||||
cacheSize = res;
|
||||
if (!mounted) return;
|
||||
setState(() => {});
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -379,8 +381,7 @@ class AboutController extends GetxController {
|
||||
aPay() {
|
||||
try {
|
||||
launchUrl(
|
||||
Uri.parse(
|
||||
'https://pilipalanet.mysxl.cn/pilipalaxadmire'),
|
||||
Uri.parse('https://pilipalanet.mysxl.cn/pilipalaxadmire'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user