mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
PluginSystem: Fixed plugins update on startup and toast messages.
This commit is contained in:
@@ -59,13 +59,13 @@
|
||||
"description": "Warnung anzeigen, wenn Batterie unter diesen Prozentsatz fällt.",
|
||||
"label": "Schwellenwert für niedrigen Batteriestand"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Zeige die Auswahl des Energieprofils im Batterie-Panel an.",
|
||||
"label": "Energieprofil-Steuerung anzeigen"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Zeige den Noctalia-Leistungsmodus-Schalter im Batterie-Panel an.",
|
||||
"label": "Noctalia-Performance-Schalter anzeigen"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Zeige die Auswahl des Energieprofils im Batterie-Panel an.",
|
||||
"label": "Energieprofil-Steuerung anzeigen"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Hinzufügen",
|
||||
"apply": "Anwenden",
|
||||
"cancel": "Abbrechen",
|
||||
"check-settings": "Überprüfe die Einstellungen für Details.",
|
||||
"close": "Schließen",
|
||||
"save": "Speichern"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Deinstallation fehlgeschlagen: {error}",
|
||||
"uninstall-success": "{plugin} wurde erfolgreich deinstalliert.",
|
||||
"uninstalling": "{Plugin} wird deinstalliert..."
|
||||
"uninstalling": "{Plugin} wird deinstalliert...",
|
||||
"update": "Aktualisierung",
|
||||
"update-all": "Alle aktualisieren ({count})",
|
||||
"update-all-success": "Alle Plugins wurden erfolgreich aktualisiert.",
|
||||
"update-available": "{count} Plugin-Update(s) verfügbar",
|
||||
"update-error": "Fehler beim Aktualisieren des Plugins: {plugin}: {error}",
|
||||
"update-incompatible": "Benötigt Noctalia v{version} oder höher",
|
||||
"update-success": "{plugin} wurde auf v{version} aktualisiert",
|
||||
"update-version": "v{aktuell} → v{neu}",
|
||||
"updating": "{Plugin} wird aktualisiert..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Show a warning when battery falls below this percentage.",
|
||||
"label": "Low battery warning threshold"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Display the power profile selection inside the battery panel.",
|
||||
"label": "Show power profile controls"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Display the Noctalia Performance Mode toggle inside the battery panel.",
|
||||
"label": "Show Noctalia Performance toggle"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Display the power profile selection inside the battery panel.",
|
||||
"label": "Show power profile controls"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -1821,8 +1821,8 @@
|
||||
"update": "Update",
|
||||
"update-all": "Update All ({count})",
|
||||
"update-all-success": "All plugins updated successfully",
|
||||
"update-available": "{count} update(s) available",
|
||||
"update-error": "Failed to update {plugin}: {error}",
|
||||
"update-available": "{count} plugins update(s) available",
|
||||
"update-error": "Failed to update plugin: {plugin}: {error}",
|
||||
"update-incompatible": "Requires Noctalia v{version} or higher",
|
||||
"update-success": "Updated {plugin} to v{version}",
|
||||
"update-version": "v{current} → v{new}",
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Muestra una advertencia cuando la batería cae por debajo de este porcentaje.",
|
||||
"label": "Umbral de advertencia de batería baja"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Muestra la selección de perfil de energía en el panel de batería.",
|
||||
"label": "Mostrar controles de perfil de energía"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Muestra el interruptor del modo de rendimiento Noctalia en el panel de batería.",
|
||||
"label": "Mostrar interruptor de Noctalia Rendimiento"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Muestra la selección de perfil de energía en el panel de batería.",
|
||||
"label": "Mostrar controles de perfil de energía"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Añadir",
|
||||
"apply": "Aplicar",
|
||||
"cancel": "Cancelar",
|
||||
"check-settings": "Consultar la configuración para más detalles.",
|
||||
"close": "Cerrar",
|
||||
"save": "Guardar"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Error al desinstalar: {error}",
|
||||
"uninstall-success": "{plugin} desinstalado correctamente",
|
||||
"uninstalling": "Desinstalando {plugin}..."
|
||||
"uninstalling": "Desinstalando {plugin}...",
|
||||
"update": "Actualizar",
|
||||
"update-all": "Actualizar todo ({count})",
|
||||
"update-all-success": "Todos los plugins se actualizaron correctamente.",
|
||||
"update-available": "{count} actualización(es) de plugin(s) disponible(s)",
|
||||
"update-error": "Error al actualizar el plugin: {plugin}: {error}",
|
||||
"update-incompatible": "Requiere Noctalia v{version} o superior",
|
||||
"update-success": "{plugin} actualizado a la versión {version}",
|
||||
"update-version": "v{actual} → v{nuevo}",
|
||||
"updating": "Actualizando {plugin}..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Afficher un avertissement lorsque la batterie tombe en dessous de ce pourcentage.",
|
||||
"label": "Seuil d'avertissement de batterie faible"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Afficher la sélection du profil d'alimentation dans le panneau batterie.",
|
||||
"label": "Afficher les contrôles de profil d'alimentation"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Afficher le basculement du mode performance Noctalia dans le panneau batterie.",
|
||||
"label": "Afficher le basculement Noctalia Performance"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Afficher la sélection du profil d'alimentation dans le panneau batterie.",
|
||||
"label": "Afficher les contrôles de profil d'alimentation"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Ajouter",
|
||||
"apply": "Postuler",
|
||||
"cancel": "Annuler",
|
||||
"check-settings": "Vérifier les paramètres pour plus de détails.",
|
||||
"close": "Fermer",
|
||||
"save": "Enregistrer"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Échec de la désinstallation : {error}",
|
||||
"uninstall-success": "{plugin} a été désinstallé(e) avec succès.",
|
||||
"uninstalling": "Désinstallation de {plugin}..."
|
||||
"uninstalling": "Désinstallation de {plugin}...",
|
||||
"update": "Mise à jour",
|
||||
"update-all": "Mettre à jour tout ({count})",
|
||||
"update-all-success": "Tous les plugins ont été mis à jour avec succès.",
|
||||
"update-available": "{count} mise(s) à jour de plugin(s) disponible(s)",
|
||||
"update-error": "Échec de la mise à jour du plugin : {plugin} : {error}",
|
||||
"update-incompatible": "Nécessite Noctalia v{version} ou une version ultérieure.",
|
||||
"update-success": "Mise à jour du plugin {plugin} vers la version {version}.",
|
||||
"update-version": "v{actuel} → v{nouveau}",
|
||||
"updating": "Mise à jour de {plugin}..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "バッテリー残量がこのパーセンテージを下回ると警告を表示します。",
|
||||
"label": "低バッテリー警告の閾値"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "バッテリーパネルに電源プロファイルの選択を表示します。",
|
||||
"label": "電源プロファイルコントロールを表示"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "バッテリーパネルにNoctaliaパフォーマンスモードのトグルを表示します。",
|
||||
"label": "Noctaliaパフォーマンストグルを表示"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "バッテリーパネルに電源プロファイルの選択を表示します。",
|
||||
"label": "電源プロファイルコントロールを表示"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "追加",
|
||||
"apply": "適用",
|
||||
"cancel": "キャンセル",
|
||||
"check-settings": "詳細については設定を確認してください。",
|
||||
"close": "閉じる",
|
||||
"save": "保存"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "アンインストールに失敗しました: {error}",
|
||||
"uninstall-success": "{plugin} のアンインストールに成功しました。",
|
||||
"uninstalling": "{plugin} をアンインストールしています..."
|
||||
"uninstalling": "{plugin} をアンインストールしています...",
|
||||
"update": "更新",
|
||||
"update-all": "すべて更新 ({count})",
|
||||
"update-all-success": "すべてのプラグインが正常に更新されました。",
|
||||
"update-available": "{count}個のプラグインアップデートがあります",
|
||||
"update-error": "プラグインの更新に失敗しました: {plugin}: {error}",
|
||||
"update-incompatible": "Noctalia v{version} 以降が必要です。",
|
||||
"update-success": "{plugin} を v{version} にアップデートしました。",
|
||||
"update-version": "v{現在} → v{新規}",
|
||||
"updating": "{plugin}を更新しています..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Toon een waarschuwing wanneer de batterij onder dit percentage komt.",
|
||||
"label": "Waarschuwingsdrempel voor lage batterij"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Toon de keuze van het stroomprofiel in het batterijpaneel.",
|
||||
"label": "Stroomprofielbediening tonen"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Toon de Noctalia-prestatiemodus-schakelaar in het batterijpaneel.",
|
||||
"label": "Noctalia-Performance-schakelaar tonen"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Toon de keuze van het stroomprofiel in het batterijpaneel.",
|
||||
"label": "Stroomprofielbediening tonen"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Toevoegen",
|
||||
"apply": "Toepassen",
|
||||
"cancel": "Annuleren",
|
||||
"check-settings": "Controleer Instellingen voor details.",
|
||||
"close": "Sluiten",
|
||||
"save": "Opslaan"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Verwijderen mislukt: {error}",
|
||||
"uninstall-success": "{plugin} is succesvol verwijderd.",
|
||||
"uninstalling": "{plugin} verwijderen..."
|
||||
"uninstalling": "{plugin} verwijderen...",
|
||||
"update": "Update",
|
||||
"update-all": "Alles bijwerken ({count})",
|
||||
"update-all-success": "Alle plugins succesvol bijgewerkt",
|
||||
"update-available": "{count} plugin(s) update(s) beschikbaar",
|
||||
"update-error": "Plugin bijwerken mislukt: {plugin}: {error}",
|
||||
"update-incompatible": "Vereist Noctalia v{version} of hoger",
|
||||
"update-success": "{plugin} is bijgewerkt naar v{version}",
|
||||
"update-version": "v{huidig} → v{nieuw}",
|
||||
"updating": "{plugin} bijwerken..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Mostrar um aviso quando a bateria cair abaixo desta porcentagem.",
|
||||
"label": "Limite de aviso de bateria fraca"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Exibir a seleção de perfil de energia no painel da bateria.",
|
||||
"label": "Mostrar controles de perfil de energia"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Exibir o interruptor do modo de desempenho Noctalia no painel da bateria.",
|
||||
"label": "Mostrar alternância de Noctalia Desempenho"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Exibir a seleção de perfil de energia no painel da bateria.",
|
||||
"label": "Mostrar controles de perfil de energia"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Adicionar",
|
||||
"apply": "Aplicar",
|
||||
"cancel": "Cancelar",
|
||||
"check-settings": "Verifique as configurações para obter detalhes.",
|
||||
"close": "Fechar",
|
||||
"save": "Salvar"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Falha ao desinstalar: {error}",
|
||||
"uninstall-success": "{plugin} desinstalado com sucesso",
|
||||
"uninstalling": "Desinstalando {plugin}..."
|
||||
"uninstalling": "Desinstalando {plugin}...",
|
||||
"update": "Atualização",
|
||||
"update-all": "Atualizar Tudo ({count})",
|
||||
"update-all-success": "Todos os plugins foram atualizados com sucesso.",
|
||||
"update-available": "{count} atualização(ões) de plugin disponível(eis)",
|
||||
"update-error": "Falha ao atualizar o plugin: {plugin}: {error}",
|
||||
"update-incompatible": "Requer Noctalia v{version} ou superior",
|
||||
"update-success": "{plugin} atualizado para a versão {version}",
|
||||
"update-version": "v{atual} → v{novo}",
|
||||
"updating": "Atualizando {plugin}..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Показывать предупреждение, когда уровень заряда батареи падает ниже этого процента.",
|
||||
"label": "Порог предупреждения о низком заряде батареи"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Отображать выбор профиля питания в панели батареи.",
|
||||
"label": "Показывать элементы управления профилем питания"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Отображать переключатель режима производительности Noctalia в панели батареи.",
|
||||
"label": "Показывать переключатель Производительность Noctalia"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Отображать выбор профиля питания в панели батареи.",
|
||||
"label": "Показывать элементы управления профилем питания"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Добавить",
|
||||
"apply": "Применить",
|
||||
"cancel": "Отменить",
|
||||
"check-settings": "Проверьте настройки для получения подробной информации.",
|
||||
"close": "Закрыть",
|
||||
"save": "Сохранить"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Не удалось удалить: {error}",
|
||||
"uninstall-success": "{plugin} успешно удален.",
|
||||
"uninstalling": "Удаление {plugin}..."
|
||||
"uninstalling": "Удаление {plugin}...",
|
||||
"update": "Обновление",
|
||||
"update-all": "Обновить все ({count})",
|
||||
"update-all-success": "Все плагины успешно обновлены.",
|
||||
"update-available": "Доступно {count} обновлений плагинов",
|
||||
"update-error": "Не удалось обновить плагин: {plugin}: {error}",
|
||||
"update-incompatible": "Требуется Noctalia v{version} или выше",
|
||||
"update-success": "Плагин {plugin} обновлён до версии {version}",
|
||||
"update-version": "v{текущее} → v{новое}",
|
||||
"updating": "Обновление {plugin}..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Batarya bu yüzdeye düştüğünde uyarı göster.",
|
||||
"label": "Düşük batarya eşiği"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Pil panelinde güç profili seçimlerini göster.",
|
||||
"label": "Güç profili denetimlerini göster"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Pil panelinde Noctalia performans modu anahtarını göster.",
|
||||
"label": "Noctalia Performans anahtarını göster"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Pil panelinde güç profili seçimlerini göster.",
|
||||
"label": "Güç profili denetimlerini göster"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Ekle",
|
||||
"apply": "Uygula",
|
||||
"cancel": "İptal",
|
||||
"check-settings": "Ayrıntılar için Ayarları Kontrol Et",
|
||||
"close": "Kapat",
|
||||
"save": "Kaydet"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Kaldırma başarısız oldu: {error}",
|
||||
"uninstall-success": "{plugin} başarıyla kaldırıldı.",
|
||||
"uninstalling": "{plugin} kaldırılıyor..."
|
||||
"uninstalling": "{plugin} kaldırılıyor...",
|
||||
"update": "Güncelleme",
|
||||
"update-all": "Tümünü Güncelle ({count})",
|
||||
"update-all-success": "Tüm eklentiler başarıyla güncellendi.",
|
||||
"update-available": "{count} eklenti için güncelleme mevcut",
|
||||
"update-error": "Eklenti güncellenemedi: {plugin}: {error}",
|
||||
"update-incompatible": "Noctalia v{version} veya üzeri gerektirir.",
|
||||
"update-success": "{plugin} v{version} sürümüne güncellendi",
|
||||
"update-version": "v{mevcut} → v{yeni}",
|
||||
"updating": "{plugin} güncelleniyor..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "Показувати попередження, коли батарея падає нижче цього відсотка.",
|
||||
"label": "Поріг попередження про низький заряд батареї"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Відображати вибір профілю живлення в панелі батареї.",
|
||||
"label": "Показувати елементи керування профілем живлення"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "Відображати перемикач режиму продуктивності Noctalia в панелі батареї.",
|
||||
"label": "Показувати перемикач Продуктивність Noctalia"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "Відображати вибір профілю живлення в панелі батареї.",
|
||||
"label": "Показувати елементи керування профілем живлення"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "Додати",
|
||||
"apply": "Подати заявку",
|
||||
"cancel": "Скасувати",
|
||||
"check-settings": "Перевірте налаштування для деталей.",
|
||||
"close": "Закрити",
|
||||
"save": "Зберегти"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "Не вдалося видалити: {error}",
|
||||
"uninstall-success": "Успішно видалено {plugin}",
|
||||
"uninstalling": "Видалення {plugin}..."
|
||||
"uninstalling": "Видалення {plugin}...",
|
||||
"update": "Оновлення",
|
||||
"update-all": "Оновити все ({count})",
|
||||
"update-all-success": "Усі плагіни успішно оновлено.",
|
||||
"update-available": "Доступно оновлень для {count} плагінів",
|
||||
"update-error": "Не вдалося оновити плагін: {plugin}: {error}",
|
||||
"update-incompatible": "Потрібна Noctalia v{version} або вище",
|
||||
"update-success": "Оновлено {plugin} до версії {version}",
|
||||
"update-version": "v{current} → v{new}",
|
||||
"updating": "Оновлення {plugin}..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
"description": "当电量低于此百分比时显示警告。",
|
||||
"label": "低电量警告阈值"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "在电池面板中显示电源配置文件选择。",
|
||||
"label": "显示电源配置文件控件"
|
||||
},
|
||||
"show-noctalia-performance": {
|
||||
"description": "在电池面板中显示 Noctalia 性能模式切换。",
|
||||
"label": "显示 Noctalia 性能切换"
|
||||
},
|
||||
"show-power-profile": {
|
||||
"description": "在电池面板中显示电源配置文件选择。",
|
||||
"label": "显示电源配置文件控件"
|
||||
}
|
||||
},
|
||||
"brightness": {
|
||||
@@ -466,6 +466,7 @@
|
||||
"add": "添加",
|
||||
"apply": "应用",
|
||||
"cancel": "取消",
|
||||
"check-settings": "查看设置了解详情",
|
||||
"close": "关闭",
|
||||
"save": "保存"
|
||||
},
|
||||
@@ -1815,7 +1816,16 @@
|
||||
},
|
||||
"uninstall-error": "卸载失败:{error}",
|
||||
"uninstall-success": "成功卸载 {plugin}",
|
||||
"uninstalling": "正在卸载 {plugin}..."
|
||||
"uninstalling": "正在卸载 {plugin}...",
|
||||
"update": "更新",
|
||||
"update-all": "全部更新({count})",
|
||||
"update-all-success": "所有插件已成功更新",
|
||||
"update-available": "有{count}个插件可更新",
|
||||
"update-error": "更新插件失败:{plugin}:{error}",
|
||||
"update-incompatible": "需要 Noctalia v{version} 或更高版本",
|
||||
"update-success": "已将 {plugin} 更新至 v{version}",
|
||||
"update-version": "v{当前} → v{新}",
|
||||
"updating": "正在更新 {plugin}..."
|
||||
},
|
||||
"screen-recorder": {
|
||||
"audio": {
|
||||
|
||||
@@ -185,6 +185,7 @@ ColumnLayout {
|
||||
onClicked: {
|
||||
var pid = pluginId;
|
||||
var pname = modelData.name;
|
||||
var pversion = PluginService.pluginUpdates[pid]?.availableVersion || "";
|
||||
var rootRef = root;
|
||||
var updates = Object.assign({}, rootRef.updatingPlugins);
|
||||
updates[pid] = true;
|
||||
@@ -198,7 +199,7 @@ ColumnLayout {
|
||||
if (success) {
|
||||
ToastService.showNotice(I18n.tr("settings.plugins.update-success", {
|
||||
"plugin": pname,
|
||||
"version": PluginService.pluginUpdates[pid]?.availableVersion || ""
|
||||
"version": pversion
|
||||
}));
|
||||
} else {
|
||||
ToastService.showError(I18n.tr("settings.plugins.update-error", {
|
||||
|
||||
@@ -133,10 +133,8 @@ ShellRoot {
|
||||
Connections {
|
||||
target: PluginService
|
||||
property bool hasCheckedOnStartup: false
|
||||
|
||||
function onAvailablePluginsUpdated() {
|
||||
// Only check once on startup, after first plugin list is fetched
|
||||
if (!hasCheckedOnStartup && Object.keys(PluginService.activeFetches).length === 0) {
|
||||
if (!hasCheckedOnStartup) {
|
||||
hasCheckedOnStartup = true;
|
||||
PluginService.checkForUpdates();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user