Set block right separator size correctly, according config

This commit is contained in:
eleksir
2024-01-16 21:19:17 +03:00
parent 418216391b
commit 95356ed547

View File

@@ -743,14 +743,14 @@ func readConf() (MyConfig, error) {
} else { } else {
matched, err := regexp.MatchString( matched, err := regexp.MatchString(
`^(xx-small|x-small|small|medium|large|x-large|xx-large|smaller|larger)$`, `^(xx-small|x-small|small|medium|large|x-large|xx-large|smaller|larger)$`,
sampleConfig.Clock.Separator.Right.FontSize, sampleConfig.Mem.Separator.Right.FontSize,
) )
if err != nil { if err != nil {
log.Printf( log.Printf(
"Unable to set sampleConfig.Mem.Separator.Right.FontSize: %s, fallback to %s", "Unable to set sampleConfig.Mem.Separator.Right.FontSize: %s, fallback to %s",
err, err,
sampleConfig.Clock.Separator.Right.FontSize, sampleConfig.Mem.Separator.Right.FontSize,
) )
sampleConfig.Mem.Separator.Right.FontSize = sampleConfig.Separator.Right.FontSize sampleConfig.Mem.Separator.Right.FontSize = sampleConfig.Separator.Right.FontSize