@@ -507,6 +507,12 @@ def _fixed_map(style, style_name, option):
507507ignoreInactiveDaysSettingCheck .grid (padx = 8 , pady = 2 , columnspan = 2 , column = 2 , row = 7 , sticky = "we" )
508508ignoreInactiveDaysSettingVar .set (settings ["ignoreInactiveDays" ])
509509
510+ ignorePrereleasesSettingVar = IntVar ()
511+ ttk .Label (settingsContainer , text = "Ignore pre-releases:" ).grid (padx = 8 , pady = 2 , columnspan = 2 , column = 0 , row = 8 , sticky = "we" )
512+ ignorePrereleasesSettingCheck = ttk .Checkbutton (settingsContainer , onvalue = 1 , offvalue = 0 , variable = ignorePrereleasesSettingVar )
513+ ignorePrereleasesSettingCheck .grid (padx = 8 , pady = 2 , columnspan = 2 , column = 2 , row = 8 , sticky = "we" )
514+ ignorePrereleasesSettingVar .set (settings ["ignorePrereleases" ])
515+
510516settingsBtnContainer = tk .Frame (settingsTab )
511517settingsBtnContainer .pack (fill = "x" )
512518
@@ -706,6 +712,7 @@ def updateSettings():
706712
707713 settings ["useHistoryColors" ] = enableColorsSettingVar .get ()
708714 settings ["ignoreInactiveDays" ] = ignoreInactiveDaysSettingVar .get ()
715+ settings ["ignorePrereleases" ] = ignorePrereleasesSettingVar .get ()
709716
710717 settings ["winBackground" ] = winBackgroundSettingBtn .color
711718 settings ["winForeground" ] = winForegroundSettingBtn .color
@@ -1072,6 +1079,7 @@ def updateSettingsUI(updateBufferDays):
10721079 bufferDaysSettingEntry .insert (0 , settings ["bufferDays" ])
10731080 enableColorsSettingVar .set (settings ["useHistoryColors" ])
10741081 ignoreInactiveDaysSettingVar .set (settings ["ignoreInactiveDays" ])
1082+ ignorePrereleasesSettingVar .set (settings ["ignorePrereleases" ])
10751083
10761084 winBackgroundSettingBtn .setValues (color = settings ["winBackground" ])
10771085 winForegroundSettingBtn .setValues (color = settings ["winForeground" ])
@@ -1203,6 +1211,7 @@ def updateValues(updateBufferDays=True):
12031211bufferDaysSettingVar .trace ("w" , lambda a , b , c : updateSettings ())
12041212enableColorsSettingCheck .configure (command = lambda : updateSettings ())
12051213ignoreInactiveDaysSettingCheck .configure (command = lambda : updateSettings ())
1214+ ignorePrereleasesSettingCheck .configure (command = lambda : updateSettings ())
12061215
12071216winBackgroundSettingBtn .setValues (command = lambda : updateSettings ())
12081217winForegroundSettingBtn .setValues (command = lambda : updateSettings ())
0 commit comments