Skip to content

Commit

Permalink
修复桌面微件更新偶尔不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
nano71 committed Nov 14, 2024
1 parent 36b7e3b commit 8f3700b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions android/local.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sdk.dir=C:\\sdk\\android-sdk
flutter.sdk=C:\\sdk\\flutter
flutter.buildMode=debug
flutter.versionName=1.6.241112
flutter.versionCode=69
flutter.buildMode=release
flutter.versionName=1.6.241114
flutter.versionCode=70
1 change: 1 addition & 0 deletions lib/pages/layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class _LayoutState extends State<Layout> {

Future<void> updateAppwidget() async {
print('updateAppwidget');
await Workmanager().cancelAll();
await Workmanager().cancelByUniqueName("com.nano71.glutassistantn.updateHomeWidget");
bool isAdded = await HomeWidgetUtils.isWidgetAdded();

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "https://pub.flutter-io.cn" # Remove this line if you wish to publis
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.6.241112+69
version: 1.6.241114+70

environment:
sdk: ">=2.14.0 <4.0.0"
Expand Down

0 comments on commit 8f3700b

Please sign in to comment.