Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Jul 17, 2022
2 parents 0135907 + 2b9b886 commit bd3b68c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ARKBreedingStats/Form1.importSave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ await ImportSavegame.ImportCollectionFromSavegame(_creatureCollection, workingCo
tabControlMain.SelectedTab = tabPageLibrary;

// reapply last sorting
listViewLibrary.Sort();
SortLibrary();

UpdateTempCreatureDropDown();

Expand Down
9 changes: 7 additions & 2 deletions ARKBreedingStats/Form1.library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1126,9 +1126,14 @@ private string DisplayedCreatureCountdown(Creature cr, out Color foreColor, out
private readonly CreatureListSorter _creatureListSorter = new CreatureListSorter();

private void libraryListView_ColumnClick(object sender, ColumnClickEventArgs e)
{
SortLibrary(e.Column);
}

private void SortLibrary(int columnIndex = -1)
{
listViewLibrary.BeginUpdate();
_creaturesDisplayed = _creatureListSorter.DoSort(_creaturesDisplayed, e.Column);
_creaturesDisplayed = _creatureListSorter.DoSort(_creaturesDisplayed, columnIndex);
_libraryListViewItemCache = null;
listViewLibrary.EndUpdate();
}
Expand Down Expand Up @@ -1957,7 +1962,7 @@ private void importFromTabSeparatedFileToolStripMenuItem_Click(object sender, Ev
tabControlMain.SelectedTab = tabPageLibrary;

// reapply last sorting
listViewLibrary.Sort();
SortLibrary();

MessageBoxes.ShowMessageBox(result, "Creatures imported from tsv file", MessageBoxIcon.Information);
}
Expand Down
2 changes: 1 addition & 1 deletion ARKBreedingStats/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.50.1.0")]
[assembly: AssemblyFileVersion("0.50.1.1")]
[assembly: NeutralResourcesLanguage("en")]

2 changes: 1 addition & 1 deletion ARKBreedingStats/_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ARK Smart Breeding": {
"Id": "ARK Smart Breeding",
"Category": "main",
"version": "0.50.1.0"
"version": "0.50.1.1"
},
"SpeciesColorImages": {
"Id": "SpeciesColorImages",
Expand Down

0 comments on commit bd3b68c

Please sign in to comment.