mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt. & fix.
fix: setting page update item display issue. fix: `bgRun` condition issue. opt: `r_upgrade` use 0.3.8+2
This commit is contained in:
@@ -27,8 +27,6 @@ Future<bool> isFileAvailable(String url) async {
|
||||
Future<void> doUpdate(BuildContext context, {bool force = false}) async {
|
||||
final update = await locator<AppService>().getUpdate();
|
||||
|
||||
locator<AppProvider>().setNewestBuild(update.newest);
|
||||
|
||||
final newest = () {
|
||||
if (isAndroid) {
|
||||
return update.androidbuild;
|
||||
@@ -40,6 +38,8 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
|
||||
return update.newest;
|
||||
}();
|
||||
|
||||
locator<AppProvider>().setNewestBuild(newest);
|
||||
|
||||
if (!force && newest <= BuildData.build) {
|
||||
_logger.info('Update ignored due to current: ${BuildData.build}, '
|
||||
'update: $newest');
|
||||
|
||||
@@ -9,7 +9,7 @@ import '../../locator.dart';
|
||||
|
||||
/// Must put this func out of any Class.
|
||||
///
|
||||
/// Because of this function is called by [compute] in [ServerProvider.genClient].
|
||||
/// Because of this function is called by [compute].
|
||||
///
|
||||
/// https://stackoverflow.com/questions/51998995/invalid-arguments-illegal-argument-in-isolate-message-object-is-a-closure
|
||||
List<SSHKeyPair> loadIndentity(String key) {
|
||||
|
||||
Reference in New Issue
Block a user