Skip to content

Commit

Permalink
- a really small fixes for the astronomy panel
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-sucan committed Dec 9, 2022
1 parent ca21950 commit c830df0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bells-tower.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -8491,7 +8491,7 @@ decideJijiReadable(timeus, elevu, lat, lon, noonu:="a") {
Else
j := "Night"

If (isInRange(elevu, noonu - 0.25, noonu + 0.25) && isNumber(noonu))
If (isInRange(elevu, noonu - 0.35, noonu + 0.35) && isNumber(noonu))
j .= ". Solar noon"
Return j
}
Expand Down Expand Up @@ -9320,15 +9320,15 @@ PanelTodayInfos() {
Else
thisSeason := zx.msg

Global editF1, editF2, editF3, editF4, editF5, uiInfoGeoData
Global editF1, editF2, editF3, editF4, editF5, uiInfoGeoData, AstroTabsWin
If !listedCountries
loadGeoData()

percentileYear := Round(A_YDay/366*100, 1) "%"
CurrentYear := A_Year
NextYear := CurrentYear + 1
percentileDay := Round(getPercentOfToday(minsPassed) * 100, 1) "%"
Gui, Add, Tab3, xm+5 Section Choose2 +hwndhTabs, Events|Astronomy
Gui, Add, Tab3, xm+5 Section Choose2 AltSubmit vAstroTabsWin +hwndhTabs, Events|Astronomy

Gui, Tab, 1
Gui, Add, Text, xs+12 y+5 w1 h1 Section, .
Expand Down Expand Up @@ -9503,6 +9503,11 @@ regularUpdaterTodayPanel() {
Return
}

Gui, SettingsGUIA: Default
GuiControlGet, AstroTabsWin
If (AstroTabsWin!=2)
Return

thisu := A_Mon A_Hour A_Min
If (allowAutoUpdateTodayPanel=1 && AnyWindowOpen=6 && thisu!=lastTodayPanelZeitUpdate)
{
Expand Down

0 comments on commit c830df0

Please sign in to comment.