Skip to content

Commit

Permalink
fix: Local versions are available not downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jan 13, 2024
1 parent 54d9012 commit 7397db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/settings-electron.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export const ElectronSettings = observer(
const { state, source } = item;
const isLocal = source === VersionSource.local;
let icon: IconName = 'box';
let humanState = 'Downloaded';
let humanState = isLocal ? 'Available' : 'Downloaded';

if (state === InstallState.downloading) {
icon = 'cloud-download';
Expand All @@ -347,7 +347,7 @@ export const ElectronSettings = observer(
// The only way for a local version to be missing
// is for it to have been deleted. Mark as unavailable.
icon = isLocal ? 'issue' : 'cloud';
humanState = isLocal ? 'Not available' : 'Not downloaded';
humanState = isLocal ? 'Not Available' : 'Not Downloaded';
}

return (
Expand Down

0 comments on commit 7397db9

Please sign in to comment.