Resolve CLI binary metadata for UI

This commit is contained in:
Shantur Rathore
2025-11-23 11:59:12 +00:00
parent 0a9b7fafed
commit f4de0103a8
7 changed files with 134 additions and 48 deletions

View File

@@ -31,9 +31,8 @@ const FolderSelectionView: Component<FolderSelectionViewProps> = (props) => {
// Update selected binary when preferences change
createEffect(() => {
const lastUsed = preferences().lastUsedBinary
if (lastUsed && lastUsed !== selectedBinary()) {
setSelectedBinary(lastUsed)
}
if (!lastUsed) return
setSelectedBinary((current) => (current === lastUsed ? current : lastUsed))
})