Skip to content

Commit

Permalink
label beta cores in core selector (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpannella authored Sep 26, 2023
1 parent 85d60b0 commit 9e47255
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pocket_updater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>2.36.1</Version>
<Version>2.36.2</Version>
<Description>Keep your Analogue Pocket up to date</Description>
<Copyright>2023 Matt Pannella</Copyright>
<Authors>Matt Pannella</Authors>
Expand Down
8 changes: 6 additions & 2 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,14 @@ static async Task RunCoreSelector(List<Core> cores, string message = "Select you
}
foreach(Core core in cores) {
current++;
if ((current <= (offset + pageSize)) && (current > offset)) {
if ((current <= (offset + pageSize)) && (current >= offset)) {
var coreSettings = settings.GetCoreSettings(core.identifier);
var selected = !coreSettings.skip;
var title = settingsMenuItem(core.identifier, selected);
var name = core.identifier;
if (core.requires_license) {
name += " (Requires beta access)";
}
var title = settingsMenuItem(name, selected);
menu.Add(title, (thisMenu) => {
selected = !selected;
if (!selected) {
Expand Down

0 comments on commit 9e47255

Please sign in to comment.