Skip to content

Commit

Permalink
v2.8.6 - bug fixes related to celebrations/holidays
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-sucan committed Sep 14, 2021
1 parent 7f17d6b commit 222ba25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<p>An application that can toll quarters, on the hour, show random Bible verses, remind the user of Christian feasts and... reproduce semantron drumming sounds. Dedicated to bell lovers and Christians.</p>

<p width="600" height="540"><img width="600" height="540" alt="Church Bells Tower - screenshot" src="https://marius.sucan.ro/media/files/blog/ahk-scripts/images/bells-tower-screenshot.jpg"></p>
<p width="610" height="500"><img width="610" height="500" alt="Church Bells Tower - screenshot" src="https://marius.sucan.ro/media/files/blog/ahk-scripts/images/bells-tower-screenshot.jpg"></p>

<h2><a href="https://marius.sucan.ro/media/files/blog/ahk-scripts/bells-tower.zip">Downloaded latest version</a> (compiled for x64/x32, Windows binary)</h2>

Expand Down
3 changes: 3 additions & 0 deletions bells-tower-change-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

Work began on this project in late August 2018.

v2.8.6 - 2021 / 09 / 14
- bug fixes related to «observe feasts/celebrations» option

v2.8.5 - 2021 / 07 / 13
- [new] Celebrations option at About; this lists celebrations for the next 30 days, based on user configured celebrations options at Settings
- bug fixes and minor improvements
Expand Down
17 changes: 9 additions & 8 deletions bells-tower.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
;@Ahk2Exe-SetCopyright Marius Şucan (2017-2018)
;@Ahk2Exe-SetCompanyName http://marius.sucan.ro
;@Ahk2Exe-SetDescription Church Bells Tower
;@Ahk2Exe-SetVersion 2.8.5
;@Ahk2Exe-SetVersion 2.8.6
;@Ahk2Exe-SetOrigFilename bells-tower.ahk
;@Ahk2Exe-SetMainIcon bells-tower.ico

Expand Down Expand Up @@ -111,8 +111,8 @@

; Release info
, ThisFile := A_ScriptName
, Version := "2.8.5"
, ReleaseDate := "2021 / 07 / 13"
, Version := "2.8.6"
, ReleaseDate := "2021 / 09 / 14"
, storeSettingsREG := FileExist("win-store-mode.ini") && A_IsCompiled && InStr(A_ScriptFullPath, "WindowsApps") ? 1 : 0
, ScriptInitialized, FirstRun := 1
, QuotesAlreadySeen := ""
Expand Down Expand Up @@ -2666,19 +2666,20 @@ coretestCelebrations(thisMon, thisMDay, thisYDay, isListMode) {
If (isListMode=0)
OSDprefix := ""

If (StrLen(isHolidayToday)>2 && ObserveHolidays=1 isListMode=0)
If (StrLen(aisHolidayToday)>2 && ObserveHolidays=1 && isListMode=0)
{
OSDprefix := (StrLen(PersonalDay)>2) ? "" : ""
If (TypeHolidayOccured=2) ; secular
If (aTypeHolidayOccured=2) ; secular
OSDprefix := ""

; ToolTip, % OSDprefix "== lol" , , , 2
If (AnyWindowOpen!=1)
{
Gui, ShareBtnGui: Destroy
CreateBibleGUI(generateDateTimeTxt() " || " isHolidayToday, 1, 1)
CreateBibleGUI(generateDateTimeTxt() " || " aisHolidayToday, 1, 1)
Gui, ShareBtnGui: Destroy
quoteDisplayTime := StrLen(isHolidayToday) * 140
If InStr(isHolidayToday, "Christmas")
quoteDisplayTime := StrLen(aisHolidayToday) * 140
If InStr(aisHolidayToday, "Christmas")
sndChanQ := AhkThread("#NoTrayIcon`nSoundPlay, sounds\christmas.mp3, 1")
Else
strikeJapanBell()
Expand Down

0 comments on commit 222ba25

Please sign in to comment.