fix for duration entry enabled on dialog launch

This commit is contained in:
Drew Weymouth
2023-04-01 10:52:14 -07:00
parent d84c0d71ed
commit 51d60822f7
+1 -1
View File
@@ -74,7 +74,7 @@ func (s *SettingsDialog) createGeneralTab() *container.TabItem {
val := int(math.Round(float64(secs) / 60.))
durationEntry.Text = strconv.Itoa(val)
}
if !s.config.Scrobbling.Enabled {
if !s.config.Scrobbling.Enabled || s.config.Scrobbling.ThresholdTimeSeconds < 0 {
durationEntry.Disable()
}