Skip to content

[Fix] Some things missed in the EOS Overlay PR #1563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 16, 2022
9 changes: 9 additions & 0 deletions electron/legendary/eos_overlay/eos_overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ function getStatus(): {

async function getLatestVersion() {
if (!existsSync(currentVersionPath)) {
// HACK: `overlay_version.json` isn't created when the overlay isn't installed
if (!isInstalled()) {
return ''
}
await updateInfo()
if (!existsSync(currentVersionPath)) {
logError(
Expand All @@ -58,6 +62,11 @@ async function getLatestVersion() {
}

async function updateInfo() {
// Without the overlay being installed, this will do nothing at all.
// So we can just skip running the command if that's the case
if (isInstalled()) {
return
}
await runLegendaryCommand(['status'], {
logMessagePrefix: 'Updating EOS Overlay information'
})
Expand Down