feat(ui): added "components index updated" toast

Should be informative for users. They could download new components once they released
This commit is contained in:
Observer KRypt0n_ 2023-03-09 15:25:38 +02:00
parent 7f6b1b754b
commit c5ec736f59
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
9 changed files with 37 additions and 2 deletions

@ -1 +1 @@
Subproject commit ba1110908259fa893036f9b37ffef2576d0c2f92 Subproject commit e47af5264697e67753ed71b37c08d224bca0922b

View file

@ -22,6 +22,7 @@ exit = Beenden
check = Überprüfen check = Überprüfen
restart = Neustarten restart = Neustarten
loading-data = Laden Daten loading-data = Laden Daten
downloading-background-picture = Hintergrundbild am Herunterladen downloading-background-picture = Hintergrundbild am Herunterladen
updating-components-index = Aktualisiere index der Komponenten updating-components-index = Aktualisiere index der Komponenten
@ -40,6 +41,9 @@ verifying-files = Verifiziere Dateien
repairing-files = Repariere Dateien repairing-files = Repariere Dateien
components-index-updated = Components index was updated
launch = Starten launch = Starten
apply-patch = Patch anwenden apply-patch = Patch anwenden
download-wine = Wine Herunterladen download-wine = Wine Herunterladen

View file

@ -22,6 +22,7 @@ exit = Exit
check = Check check = Check
restart = Restart restart = Restart
loading-data = Loading data loading-data = Loading data
downloading-background-picture = Downloading background picture downloading-background-picture = Downloading background picture
updating-components-index = Updating components index updating-components-index = Updating components index
@ -40,6 +41,9 @@ verifying-files = Verifying files
repairing-files = Repairing files repairing-files = Repairing files
components-index-updated = Components index was updated
launch = Launch launch = Launch
apply-patch = Apply patch apply-patch = Apply patch
download-wine = Download wine download-wine = Download wine

View file

@ -22,6 +22,7 @@ exit = Salir
check = Comprobar check = Comprobar
restart = Reiniciar restart = Reiniciar
loading-data = Cargando datos loading-data = Cargando datos
downloading-background-picture = Descargando imagen de fondo downloading-background-picture = Descargando imagen de fondo
updating-components-index = Actualizando índice de componentes updating-components-index = Actualizando índice de componentes
@ -40,6 +41,9 @@ verifying-files = Verifying files
repairing-files = Repairing files repairing-files = Repairing files
components-index-updated = Components index was updated
launch = Iniciar launch = Iniciar
apply-patch = Aplicar parche apply-patch = Aplicar parche
download-wine = Descargar wine download-wine = Descargar wine

View file

@ -22,6 +22,7 @@ exit = Quitter
check = Vérifier check = Vérifier
restart = Redémarer restart = Redémarer
loading-data = Chargement des données loading-data = Chargement des données
downloading-background-picture = Téléchargement de l'image de fond downloading-background-picture = Téléchargement de l'image de fond
updating-components-index = Updating components index updating-components-index = Updating components index
@ -40,6 +41,9 @@ verifying-files = Vérification des fichiers
repairing-files = Réparation des fichiers repairing-files = Réparation des fichiers
components-index-updated = Components index was updated
launch = Lancer launch = Lancer
apply-patch = Appliquer le patch apply-patch = Appliquer le patch
download-wine = Télécharger wine download-wine = Télécharger wine

View file

@ -47,6 +47,9 @@ verifying-files = Проверка файлов
repairing-files = Починка файлов repairing-files = Починка файлов
components-index-updated = Индекс компонентов был обновлен
launch = Запустить launch = Запустить
apply-patch = Применить патч apply-patch = Применить патч
download-wine = Установить Wine download-wine = Установить Wine

View file

@ -22,6 +22,7 @@ exit = Çıkış yap
check = Kontrol et check = Kontrol et
restart = Tekrardan başlat restart = Tekrardan başlat
loading-data = Bilgiler yükleniyor loading-data = Bilgiler yükleniyor
downloading-background-picture = Arkaplan dosyasi indiriliyor downloading-background-picture = Arkaplan dosyasi indiriliyor
updating-components-index = Bileşenlerin dizini güncelleniyor updating-components-index = Bileşenlerin dizini güncelleniyor
@ -40,6 +41,9 @@ verifying-files = Dosyalar Doğrulanıyor
repairing-files = Dosyalar tamir ediliyor repairing-files = Dosyalar tamir ediliyor
components-index-updated = Components index was updated
launch = Çalıştır launch = Çalıştır
apply-patch = Yamayı uygula apply-patch = Yamayı uygula
download-wine = Wine indir download-wine = Wine indir

View file

@ -22,6 +22,7 @@ exit = 退出
check = 检查 check = 检查
restart = 重启 restart = 重启
loading-data = 正在加载数据 loading-data = 正在加载数据
downloading-background-picture = 正在下载背景图片 downloading-background-picture = 正在下载背景图片
updating-components-index = 正在更新组件索引 updating-components-index = 正在更新组件索引
@ -40,6 +41,9 @@ verifying-files = 正在检验文件
repairing-files = 正在修复文件 repairing-files = 正在修复文件
components-index-updated = Components index was updated
launch = 启动 launch = 启动
apply-patch = 安装补丁 apply-patch = 安装补丁
download-wine = 下载 Wine download-wine = 下载 Wine

View file

@ -613,7 +613,15 @@ impl SimpleComponent for App {
Ok(false) => { Ok(false) => {
for host in &CONFIG.components.servers { for host in &CONFIG.components.servers {
match components.sync(host) { match components.sync(host) {
Ok(true) => break, Ok(true) => {
// TODO: add changelog log here
sender.input(AppMsg::Toast {
title: tr("components-index-updated"),
description: None
});
}
Ok(false) => continue, Ok(false) => continue,
Err(err) => { Err(err) => {