Fix extension download stuck at pending state in some cases (#2483)

Also auto update extension list whenever a repository is added or removed

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
c2y5
2025-11-02 03:09:22 +13:00
committed by GitHub
parent 643762f913
commit 87c6f34a55
4 changed files with 10 additions and 1 deletions
@@ -140,7 +140,7 @@ class ExtensionManager(
} catch (e: Exception) {
logcat(LogPriority.ERROR, e)
withUIContext { context.toast(MR.strings.extension_api_error) }
emptyList()
return
}
enableAdditionalSubLanguages(extensions)
@@ -169,6 +169,7 @@ class ExtensionsScreenModel(
fun cancelInstallUpdateExtension(extension: Extension) {
extensionManager.cancelInstallUpdateExtension(extension)
removeDownloadState(extension)
}
private fun addDownloadState(extension: Extension, installStep: InstallStep) {