You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-09 23:17:29 +02:00
fix(mobile): skip widget updates if on android (#19553)
* fix: skip widget updates if on android * remove dead line
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'dart:io';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:immich_mobile/constants/constants.dart';
|
||||
import 'package:immich_mobile/repositories/widget.repository.dart';
|
||||
@@ -32,6 +33,8 @@ class WidgetService {
|
||||
}
|
||||
|
||||
Future<void> refreshWidgets() async {
|
||||
if (Platform.isAndroid) return;
|
||||
|
||||
for (final name in kWidgetNames) {
|
||||
await _repository.refresh(name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user