基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
add auto update
Predidit79686fbcbcb4
diff --git a/lib/pages/init_page.dart b/lib/pages/init_page.dartindex 0f7f9f96..737b6256 100644--- a/lib/pages/init_page.dart+++ b/lib/pages/init_page.dart@@ -1,5 +1,6 @@import 'package:flutter/material.dart';import 'package:hive/hive.dart';+import 'package:kazumi/pages/my/my_controller.dart';import 'package:kazumi/utils/webdav.dart';import 'package:kazumi/utils/storage.dart';import 'package:kazumi/plugins/plugins_controller.dart';@@ -21,6 +22,7 @@ class _InitPageState extends State<InitPage> {void initState() {_pluginInit();_webDavInit();+ _update();super.initState();}@@ -98,6 +100,13 @@ class _InitPageState extends State<InitPage> {}}+ _update() {+ bool autoUpdate = setting.get(SettingBoxKey.autoUpdate, defaultValue: true);+ if (autoUpdate) {+ Modular.get<MyController>().checkUpdata(type: 'auto');+ }+ }+@overrideWidget build(BuildContext context) {/// 适配平板设备diff --git a/lib/pages/settings/other_settings.dart b/lib/pages/settings/other_settings.dartindex 914108c8..c00dab28 100644--- a/lib/pages/settings/other_settings.dart+++ b/lib/pages/settings/other_settings.dart@@ -62,6 +62,13 @@ class _OtherSettingsPageState extends State<OtherSettingsPage> {defaultVal: false,),),+ InkWell(+ child: SetSwitchItem(+ title: '自动更新',+ setKey: SettingBoxKey.autoUpdate,+ defaultVal: true,+ ),+ ),],),),