Skip to content

Commit

Permalink
fix: auto refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
axel7083 committed Mar 9, 2024
1 parent 4d14c73 commit 06f542c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private void LoadROM(string filename)
btnEditLevelNames.Enabled = true;

slStatusLabel.Text = "Loaded ROM Version: " + Program.m_ROM.m_Version.ToString().Replace('_', ' ');
RefreshAddonsButton();
}

private void LoadROMExtracted(string basePath, string patchPath, string conversionPath, string buildPath) {
Expand Down Expand Up @@ -1498,7 +1499,7 @@ private void RefreshAddonsButton()
}

// If the rom is null - do not allow to switch from online to local
if (Program.m_ROM == null)
if (Program.m_ROM == null || Program.m_IsROMFolder)
{
this.addonsChoice.Enabled = false;
this.btnDownloadAddon.Enabled = false;
Expand Down

0 comments on commit 06f542c

Please sign in to comment.