mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-04 07:13:28 +01:00 
			
		
		
		
	Add 'skip update notification' per-app toggle (#980)
This commit is contained in:
		@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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": "برنامه ها حذف شوند؟"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 ?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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": "アプリを削除しますか?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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": "Удалить приложения?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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": "是否删除应用?"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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)) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -442,6 +442,10 @@ abstract class AppSource {
 | 
				
			|||||||
    [
 | 
					    [
 | 
				
			||||||
      GeneratedFormSwitch('exemptFromBackgroundUpdates',
 | 
					      GeneratedFormSwitch('exemptFromBackgroundUpdates',
 | 
				
			||||||
          label: tr('exemptFromBackgroundUpdates'))
 | 
					          label: tr('exemptFromBackgroundUpdates'))
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    [
 | 
				
			||||||
 | 
					      GeneratedFormSwitch('skipUpdateNotifications',
 | 
				
			||||||
 | 
					          label: tr('skipUpdateNotifications'))
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user