Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Background Items names what failed, and tells every failure
Țugui Dragoș3cc385feb780
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 4fa7d904..0810f8d8 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -121609,536 +121609,6 @@}}},- "The item couldn’t be disabled." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Položku nelze vypnout."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Das Objekt konnte nicht deaktiviert werden."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "No se ha podido desactivar el ítem."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossible de désactiver l’élément."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossibile disabilitare l’elemento."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "この項目を無効にできませんでした。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "항목을 비활성화할 수 없습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Het onderdeel kon niet worden uitgeschakeld."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Nie udało się wyłączyć tej rzeczy."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Não foi possível desativar o item."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Articolul nu a putut fi dezactivat."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не удалось выключить объект."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Objektet kunde inte avaktiveras."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Öğe etkisizleştirilemedi."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не вдалося вимкнути елемент."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "未能停用此项目。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "無法停用此項目。"- }- }- }- },- "The item couldn’t be enabled." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Položku nelze zapnout."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Das Objekt konnte nicht aktiviert werden."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "No se ha podido activar el ítem."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossible d’activer l’élément."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossibile abilitare l’elemento."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "この項目を有効にできませんでした。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "항목을 활성화할 수 없습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Het onderdeel kon niet worden ingeschakeld."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Nie udało się włączyć tej rzeczy."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Não foi possível ativar o item."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Articolul nu a putut fi activat."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не удалось включить объект."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Objektet kunde inte aktiveras."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Öğe etkinleştirilemedi."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не вдалося увімкнути елемент."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "未能启用此项目。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "無法啟用此項目。"- }- }- }- },- "The item couldn’t be moved to the Trash." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Položku nelze přesunout do koše."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Das Objekt konnte nicht in den Papierkorb gelegt werden."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "No se ha podido trasladar el ítem a la papelera."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossible de placer l’élément dans la corbeille."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossibile spostare l’elemento nel Cestino."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "この項目をゴミ箱に入れられませんでした。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "항목을 휴지통으로 이동할 수 없습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Het onderdeel kon niet naar de prullenmand worden verplaatst."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Nie udało się przenieść tej rzeczy do Kosza."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Não foi possível mover o item para o Lixo."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Articolul nu a putut fi mutat în Coș."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не удалось переместить объект в Корзину."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Objektet kunde inte flyttas till papperskorgen."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Öğe Çöp Sepeti’ne taşınamadı."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не вдалося перемістити елемент у Смітник."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "未能将此项目移到废纸篓。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "無法將此項目丟到「垃圾桶」。"- }- }- }- },- "The item couldn’t be started." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Položku nelze spustit."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Das Objekt konnte nicht gestartet werden."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "No se ha podido iniciar el ítem."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossible de démarrer l’élément."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossibile avviare l’elemento."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "この項目を開始できませんでした。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "항목을 시작할 수 없습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Het onderdeel kon niet worden gestart."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Nie udało się uruchomić tej rzeczy."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Não foi possível iniciar o item."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Articolul nu a putut fi pornit."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не удалось запустить объект."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Objektet kunde inte startas."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Öğe başlatılamadı."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не вдалося запустити елемент."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "未能启动此项目。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "無法啟動此項目。"- }- }- }- },- "The item couldn’t be stopped." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Položku nelze zastavit."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Das Objekt konnte nicht gestoppt werden."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "No se ha podido detener el ítem."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossible d’arrêter l’élément."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Impossibile interrompere l’elemento."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "この項目を停止できませんでした。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "항목을 중단할 수 없습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Het onderdeel kon niet worden gestopt."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Nie udało się zatrzymać tej rzeczy."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Não foi possível parar o item."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Articolul nu a putut fi oprit."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не удалось остановить объект."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Objektet kunde inte stoppas."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Öğe durdurulamadı."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Не вдалося зупинити елемент."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "未能停止此项目。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "無法停止此項目。"- }- }- }- },"The items are in the Trash. You can drag them back out in Finder." : {"localizations" : {"cs" : {@@ -162344,6 +161814,536 @@}}}+ },+ "“%@” couldn’t be disabled." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Položku „%@“ nelze vypnout."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@“ konnte nicht deaktiviert werden."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se ha podido desactivar “%@”."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossible de désactiver « %@ »."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile disabilitare “%@”."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@”を無効にできませんでした。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "‘%@’을(를) 비활성화할 수 없습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "'%@' kon niet worden uitgeschakeld."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nie udało się wyłączyć „%@”."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não foi possível desativar “%@”."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@” nu a putut fi dezactivat."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не удалось выключить объект «%@»."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "”%@” kunde inte avaktiveras."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@” etkisizleştirilemedi."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не вдалося вимкнути «%@»."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未能停用“%@”。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "無法停用「%@」。"+ }+ }+ }+ },+ "“%@” couldn’t be enabled." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Položku „%@“ nelze zapnout."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@“ konnte nicht aktiviert werden."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se ha podido activar “%@”."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossible d’activer « %@ »."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile abilitare “%@”."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@”を有効にできませんでした。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "‘%@’을(를) 활성화할 수 없습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "'%@' kon niet worden ingeschakeld."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nie udało się włączyć „%@”."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não foi possível ativar “%@”."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@” nu a putut fi activat."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не удалось включить объект «%@»."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "”%@” kunde inte aktiveras."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@” etkinleştirilemedi."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не вдалося увімкнути «%@»."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未能启用“%@”。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "無法啟用「%@」。"+ }+ }+ }+ },+ "“%@” couldn’t be moved to the Trash." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Položku „%@“ nelze přesunout do koše."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@“ konnte nicht in den Papierkorb gelegt werden."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se ha podido trasladar “%@” a la papelera."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossible de placer « %@ » dans la corbeille."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile spostare “%@” nel Cestino."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@”をゴミ箱に入れられませんでした。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "‘%@’을(를) 휴지통으로 이동할 수 없습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "'%@' kon niet naar de prullenmand worden verplaatst."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nie udało się przenieść „%@” do Kosza."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não foi possível mover “%@” para o Lixo."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@” nu a putut fi mutat în Coș."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не удалось переместить объект «%@» в Корзину."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "”%@” kunde inte flyttas till papperskorgen."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@” Çöp Sepeti’ne taşınamadı."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не вдалося перемістити «%@» у Смітник."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未能将“%@”移到废纸篓。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "無法將「%@」丟到「垃圾桶」。"+ }+ }+ }+ },+ "“%@” couldn’t be started." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Položku „%@“ nelze spustit."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@“ konnte nicht gestartet werden."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se ha podido iniciar “%@”."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossible de démarrer « %@ »."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile avviare “%@”."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@”を開始できませんでした。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "‘%@’을(를) 시작할 수 없습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "'%@' kon niet worden gestart."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nie udało się uruchomić „%@”."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não foi possível iniciar “%@”."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@” nu a putut fi pornit."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не удалось запустить объект «%@»."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "”%@” kunde inte startas."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@” başlatılamadı."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не вдалося запустити «%@»."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未能启动“%@”。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "無法啟動「%@」。"+ }+ }+ }+ },+ "“%@” couldn’t be stopped." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Položku „%@“ nelze zastavit."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@“ konnte nicht gestoppt werden."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se ha podido detener “%@”."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossible d’arrêter « %@ »."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile interrompere “%@”."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@”を停止できませんでした。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "‘%@’을(를) 중단할 수 없습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "'%@' kon niet worden gestopt."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nie udało się zatrzymać „%@”."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não foi possível parar “%@”."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "„%@” nu a putut fi oprit."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не удалось остановить объект «%@»."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "”%@” kunde inte stoppas."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "“%@” durdurulamadı."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не вдалося зупинити «%@»."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未能停止“%@”。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "無法停止「%@」。"+ }+ }+ }}},"version" : "1.0"diff --git a/Packages/PeelCore/Sources/PeelCore/Support/AlertQueue.swift b/Packages/PeelCore/Sources/PeelCore/Support/AlertQueue.swiftnew file mode 100644index 00000000..c0b08194--- /dev/null+++ b/Packages/PeelCore/Sources/PeelCore/Support/AlertQueue.swift@@ -0,0 +1,18 @@+/// What waits to be told in an alert, one at a time and in the order it came.+public struct AlertQueue<Element> {+ private var waiting: [Element] = []++ public init() {}++ /// The one on screen.+ public var current: Element? { waiting.first }++ public mutating func add(_ element: Element) {+ waiting.append(element)+ }++ public mutating func dismissCurrent() {+ guard !waiting.isEmpty else { return }+ waiting.removeFirst()+ }+}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/AlertQueueTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/AlertQueueTests.swiftnew file mode 100644index 00000000..a542acb7--- /dev/null+++ b/Packages/PeelCore/Tests/PeelCoreTests/AlertQueueTests.swift@@ -0,0 +1,23 @@+@testable import PeelCore+import Testing++struct AlertQueueTests {+ /// A failure that comes while another is on screen waits its turn, rather than changing the alert already+ /// shown or never being told.+ @Test func showsEachInTurn() {+ var queue = AlertQueue<String>()+ #expect(queue.current == nil)++ queue.add("Stop on org.example.one")+ queue.add("Disable on org.example.two")+ #expect(queue.current == "Stop on org.example.one")++ queue.dismissCurrent()+ #expect(queue.current == "Disable on org.example.two")++ queue.dismissCurrent()+ #expect(queue.current == nil)+ queue.dismissCurrent()+ #expect(queue.current == nil)+ }+}diff --git a/Peel/Model/BackgroundItemLibrary.swift b/Peel/Model/BackgroundItemLibrary.swiftindex 9770383c..8e0725a8 100644--- a/Peel/Model/BackgroundItemLibrary.swift+++ b/Peel/Model/BackgroundItemLibrary.swift@@ -12,7 +12,8 @@ final class BackgroundItemLibrary {/// clears another row's busy state.private(set) var runningActionItemIDs: Set<BackgroundItem.ID> = []var selection: BackgroundItem.ID?- var failure: ActionFailure?+ /// Actions run on several items at once, so their failures wait their turn rather than replace each other.+ private(set) var failures = AlertQueue<ActionFailure>()var selectedItem: BackgroundItem? {items?.first { $0.id == selection }@@ -40,10 +41,15 @@ final class BackgroundItemLibrary {}struct ActionFailure {+ let label: Stringlet action: Actionlet reason: BackgroundItemActions.Failure}+ func dismissFailure() {+ failures.dismissCurrent()+ }+/// Runs `action` on `item`, then scans again. What a move to the Trash moved and refused goes to `record` before/// the rescan, which can take a while: History is the way back for what just moved.func perform(@@ -65,11 +71,11 @@ final class BackgroundItemLibrary {return result}if let refusal = result.failures.first {- failure = ActionFailure(action: action, reason: .trash(refusal.reason))+ failures.add(ActionFailure(label: item.label, action: action, reason: .trash(refusal.reason)))}}} catch {- failure = ActionFailure(action: action, reason: error)+ failures.add(ActionFailure(label: item.label, action: action, reason: error))}await refresh(installedApps: installedApps)}diff --git a/Peel/Views/BackgroundItems/BackgroundItemList.swift b/Peel/Views/BackgroundItems/BackgroundItemList.swiftindex b2fa0ffc..433496ba 100644--- a/Peel/Views/BackgroundItems/BackgroundItemList.swift+++ b/Peel/Views/BackgroundItems/BackgroundItemList.swift@@ -61,24 +61,25 @@ struct BackgroundItemList: View {private var isShowingFailure: Binding<Bool> {Binding(- get: { backgroundItems.failure != nil },- set: { if !$0 { backgroundItems.failure = nil } }+ get: { backgroundItems.failures.current != nil },+ set: { if !$0 { backgroundItems.dismissFailure() } })}private var failureTitle: Text {- switch backgroundItems.failure?.action {- case .start: Text("The item couldn’t be started.")- case .stop: Text("The item couldn’t be stopped.")- case .enable: Text("The item couldn’t be enabled.")- case .disable: Text("The item couldn’t be disabled.")- case .moveToTrash: Text("The item couldn’t be moved to the Trash.")- case nil: Text(verbatim: "")+ guard let failure = backgroundItems.failures.current else { return Text(verbatim: "") }+ let label = failure.label+ return switch failure.action {+ case .start: Text("“\(label)” couldn’t be started.")+ case .stop: Text("“\(label)” couldn’t be stopped.")+ case .enable: Text("“\(label)” couldn’t be enabled.")+ case .disable: Text("“\(label)” couldn’t be disabled.")+ case .moveToTrash: Text("“\(label)” couldn’t be moved to the Trash.")}}private var failureMessage: Text {- switch backgroundItems.failure?.reason {+ switch backgroundItems.failures.current?.reason {case .requiresPrivileges: Text("It needs administrator access, which Peel’s helper provides.")case .noFileToMove: Text("This one comes from the app itself, so there is no file to move. Remove the app to get rid of it.")case .launchctl(let output): Text(verbatim: FixedSentence.translated(output))