From a7dfc05830406928f0c952dc5e1ae66935139dcc Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Sat, 9 May 2026 12:23:58 +0200
Subject: [PATCH] Fix showing uninstall button twice in extension info page
In case the extensions has an available update and is obsolete at the same time, the uninstall button was shown twice.
An obsolete extension is not updatable; thus, the second button for the "update" action should not be shown.
---
CHANGELOG.md | 1 +
src/features/extension/info/screens/ExtensionInfo.tsx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eaafaf10..e635912f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Fixed
- (**Navigation**) Fix obsolete extensions being included in the updatable extensions info
+- (**Extensions**) Fix showing the uninstall button twice in the extension info page in case the extensions is obsolete and has a update at the same time
## [20260508.01] (r3136) - 2026-05-08
diff --git a/src/features/extension/info/screens/ExtensionInfo.tsx b/src/features/extension/info/screens/ExtensionInfo.tsx
index 5dbb22ba..635ce643 100644
--- a/src/features/extension/info/screens/ExtensionInfo.tsx
+++ b/src/features/extension/info/screens/ExtensionInfo.tsx
@@ -81,7 +81,7 @@ export const ExtensionInfo = () => {
- {extension.hasUpdate && }
+ {extension.hasUpdate && !extension.isObsolete && }
{sources.map((source) => (