Skip to content

Commit

Permalink
Fix honouring the "Show tips at startup" checkbox being toggled.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsr committed Jan 27, 2025
1 parent 32d43f2 commit 7ad5269
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions MainWin.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,9 @@ def Tip( self ):
return self.GetTip()

def ShowTipAtStartup():
# Check whether this should be called, not whether the call should continue
mainWin = Utils.getMainWin()
#if mainWin and not mainWin.config.ReadBool('showTipAtStartup', True):
# return


tipFile = os.path.join(Utils.getImageFolder(), "tips.txt")
try:
provider = MyTipProvider( tipFile )
Expand Down Expand Up @@ -4381,7 +4380,10 @@ def MainLoop():
#tbicon.SetIcon( icon, "CrossMgr" )

if args.verbose:
wx.CallLater( 500, ShowSplashScreen, ShowTipAtStartup )
if mainWin.config.ReadBool('showTipAtStartup', True) == True:
wx.CallLater( 500, ShowSplashScreen, ShowTipAtStartup )
else:
wx.CallLater( 500, ShowSplashScreen )

mainWin.forecastHistory.setSash()

Expand Down

0 comments on commit 7ad5269

Please sign in to comment.