Skip to content

Commit a22b674

Browse files
committed
version 1.5.6
1 parent 9bff44a commit a22b674

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/pages/init_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class _InitPageState extends State<InitPage> {
3333
void initState() {
3434
_pluginInit();
3535
_webDavInit();
36-
_update();
3736
_migrateStorage();
3837
_loadShaders();
38+
_update();
3939
themeProvider = Provider.of<ThemeProvider>(context, listen: false);
4040
super.initState();
4141
}
@@ -191,11 +191,11 @@ class _InitPageState extends State<InitPage> {
191191
Future<void> _update() async {
192192
// Don't check update when there is no plugin.
193193
// We will progress init workflow instead.
194+
await Future.delayed(const Duration(seconds: 1));
194195
if (pluginsController.pluginList.isNotEmpty) {
195196
bool autoUpdate =
196197
setting.get(SettingBoxKey.autoUpdate, defaultValue: true);
197198
if (autoUpdate) {
198-
await Future.delayed(const Duration(seconds: 1));
199199
Modular.get<MyController>().checkUpdata(type: 'auto');
200200
}
201201
}

lib/request/api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Api {
22
// 当前版本
3-
static const String version = '1.5.5';
3+
static const String version = '1.5.6';
44
// 规则API级别
55
static const int apiLevel = 3;
66
// 项目主页

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 1.5.5+10505
19+
version: 1.5.6+10506
2020

2121
environment:
2222
sdk: '>=3.3.4 <4.0.0'

0 commit comments

Comments
 (0)