Add 'skip update notification' per-app toggle (#980)

This commit is contained in:
Imran Remtulla
2023-10-12 19:33:38 -04:00
parent e613a494ff
commit d06f20690d
16 changed files with 22 additions and 1 deletions

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Želite li ukloniti aplikaciju?", "one": "Želite li ukloniti aplikaciju?",
"other": "Želite li ukloniti aplikacije?" "other": "Želite li ukloniti aplikacije?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Odstranit Apku?", "one": "Odstranit Apku?",
"other": "Odstranit Apky?" "other": "Odstranit Apky?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Hintergrundaktualisierungsprüfung jetzt durchführen", "runBgCheckNow": "Hintergrundaktualisierungsprüfung jetzt durchführen",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "App entfernen?", "one": "App entfernen?",
"other": "Apps entfernen?" "other": "Apps entfernen?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Remove App?", "one": "Remove App?",
"other": "Remove Apps?" "other": "Remove Apps?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "¿Eliminar Aplicación?", "one": "¿Eliminar Aplicación?",
"other": "¿Eliminar Aplicaciones?" "other": "¿Eliminar Aplicaciones?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "برنامه حذف شود؟", "one": "برنامه حذف شود؟",
"other": "برنامه ها حذف شوند؟" "other": "برنامه ها حذف شوند؟"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Supprimer l'application ?", "one": "Supprimer l'application ?",
"other": "Supprimer les applications ?" "other": "Supprimer les applications ?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Futtassa a Háttérben frissítés ellenőrzését most", "runBgCheckNow": "Futtassa a Háttérben frissítés ellenőrzését most",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Eltávolítja az alkalmazást?", "one": "Eltávolítja az alkalmazást?",
"other": "Eltávolítja az alkalmazást?" "other": "Eltávolítja az alkalmazást?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Rimuovere l'app?", "one": "Rimuovere l'app?",
"other": "Rimuovere le app?" "other": "Rimuovere le app?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Run Background Update Check Now", "runBgCheckNow": "Run Background Update Check Now",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "アプリを削除しますか?", "one": "アプリを削除しますか?",
"other": "アプリを削除しますか?" "other": "アプリを削除しますか?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Wymuś sprawdzenie aktualizacji w tle", "runBgCheckNow": "Wymuś sprawdzenie aktualizacji w tle",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Usunąć aplikację?", "one": "Usunąć aplikację?",
"few": "Usunąć aplikacje?", "few": "Usunąć aplikacje?",

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Execute a verificação de atualização em segundo plano agora", "runBgCheckNow": "Execute a verificação de atualização em segundo plano agora",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Remover App?", "one": "Remover App?",
"other": "Remover Apps?" "other": "Remover Apps?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "Запустить проверку фонового обновления сейчас", "runBgCheckNow": "Запустить проверку фонового обновления сейчас",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "Удалить приложение?", "one": "Удалить приложение?",
"other": "Удалить приложения?" "other": "Удалить приложения?"

View File

@@ -265,6 +265,7 @@
"runBgCheckNow": "立即进行后台更新检查", "runBgCheckNow": "立即进行后台更新检查",
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
"installing": "Installing", "installing": "Installing",
"skipUpdateNotifications": "Skip update notifications",
"removeAppQuestion": { "removeAppQuestion": {
"one": "是否删除应用?", "one": "是否删除应用?",
"other": "是否删除应用?" "other": "是否删除应用?"

View File

@@ -1439,7 +1439,10 @@ Future<void> bgUpdateCheck(int taskId, Map<String, dynamic>? params) async {
if (newApp != null) { if (newApp != null) {
if (networkRestricted || if (networkRestricted ||
!(await appsProvider.canInstallSilently(app!.app))) { !(await appsProvider.canInstallSilently(app!.app))) {
toNotify.add(newApp); if (newApp.additionalSettings['skipUpdateNotifications'] !=
true) {
toNotify.add(newApp);
}
} }
} }
if (i == (toCheck.length - 1)) { if (i == (toCheck.length - 1)) {

View File

@@ -442,6 +442,10 @@ abstract class AppSource {
[ [
GeneratedFormSwitch('exemptFromBackgroundUpdates', GeneratedFormSwitch('exemptFromBackgroundUpdates',
label: tr('exemptFromBackgroundUpdates')) label: tr('exemptFromBackgroundUpdates'))
],
[
GeneratedFormSwitch('skipUpdateNotifications',
label: tr('skipUpdateNotifications'))
] ]
]; ];