mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-22 02:13:47 +02:00
Add 'skip update notification' per-app toggle (#980)
This commit is contained in:
@@ -1439,7 +1439,10 @@ Future<void> bgUpdateCheck(int taskId, Map<String, dynamic>? params) async {
|
||||
if (newApp != null) {
|
||||
if (networkRestricted ||
|
||||
!(await appsProvider.canInstallSilently(app!.app))) {
|
||||
toNotify.add(newApp);
|
||||
if (newApp.additionalSettings['skipUpdateNotifications'] !=
|
||||
true) {
|
||||
toNotify.add(newApp);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (i == (toCheck.length - 1)) {
|
||||
|
@@ -442,6 +442,10 @@ abstract class AppSource {
|
||||
[
|
||||
GeneratedFormSwitch('exemptFromBackgroundUpdates',
|
||||
label: tr('exemptFromBackgroundUpdates'))
|
||||
],
|
||||
[
|
||||
GeneratedFormSwitch('skipUpdateNotifications',
|
||||
label: tr('skipUpdateNotifications'))
|
||||
]
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user