Skip to content

Commit

Permalink
enhancement: auto-select the first item in the Configs list (fixes #1391
Browse files Browse the repository at this point in the history
)

If we have items in the Configs list, automatically select the first one.
  • Loading branch information
midwan committed Aug 27, 2024
1 parent b5b497f commit 090d83b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/osdep/gui/PanelConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ void RefreshPanelConfig()
}
}
}
else if (configsList.getNumberOfElements() > 0)
{
lstConfigs->setSelected(0);
}
}

bool HelpPanelConfig(std::vector<std::string>& helptext)
Expand Down

0 comments on commit 090d83b

Please sign in to comment.