Skip to content

Commit

Permalink
Merge pull request #920 from Ordisoftware/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Ordisoftware authored Oct 2, 2021
2 parents 29f12fe + ae73ebc commit b068770
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("9.6.0.0")]
[assembly: AssemblyFileVersion("9.6.0.0")]
[assembly: AssemblyVersion("9.7.0.0")]
[assembly: AssemblyFileVersion("9.7.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ private void CelebrationVersesBoardForm_Load(object sender, EventArgs e)
private void PopulateLists()
{
var items = Enums.GetValues<TorahCelebration>()
.Skip(1)
.Select(value => new ListViewItem(AppTranslations.TorahCelebrations.GetLang(value)) { Tag = value });
SelectCelebration.Items.Clear();
SelectCelebration.Items.AddRange(items.ToArray());
Expand All @@ -109,9 +110,15 @@ private void FindCurrentCelebration(TorahCelebrationDay celebration = TorahCeleb
if ( celebration == TorahCelebrationDay.None )
{
var dateStart = DateTime.Today;
var day = ApplicationDatabase.Instance.LunisolarDays.FirstOrDefault(d => d.Date >= dateStart && d.HasTorahEvent);
var day = ApplicationDatabase.Instance
.LunisolarDays
.FirstOrDefault(d => d.Date >= dateStart
&& d.HasTorahEvent
&& d.TorahEvent != TorahCelebrationDay.NewYearD1);
if ( day != null ) celebration = day.TorahEvent;
}
if ( celebration == TorahCelebrationDay.NewYearD10 )
celebration = TorahCelebrationDay.PessahD1;
if ( celebration != TorahCelebrationDay.None )
{
foreach ( ListViewItem item in SelectCelebration.Items )
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ The generation of parashot relating to Shabatot is not guaranteed to be traditio

## Changelog

#### 2021.10.02 - Version 9.7

- Fix a bug introduced in previous version for the celebration verses board.

#### 2021.09.29 - Version 9.6

- Add option to show current celebration in the title bar.
Expand Down
2 changes: 1 addition & 1 deletion Setup/OrdisoftwareHebrewCalendarSetup.iss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MyAppVersion "9.6"
#define MyAppVersion "9.7"
#define MyAppName "Hebrew Calendar"
#define MyAppNameNoSpace "HebrewCalendar"
#define MyAppExeName "Ordisoftware.Hebrew.Calendar.exe"
Expand Down

0 comments on commit b068770

Please sign in to comment.