mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Add default titles, to mimic original behavior
Have the modules set their own titles If no title is specified, use this title, rather than default to name
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/wtfutil/wtf/cfg"
|
||||
)
|
||||
|
||||
const configKey = "gcal"
|
||||
const defaultTitle = "Calendar"
|
||||
|
||||
type colors struct {
|
||||
day string
|
||||
@@ -35,7 +35,7 @@ type Settings struct {
|
||||
func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings {
|
||||
|
||||
settings := Settings{
|
||||
common: cfg.NewCommonSettingsFromModule(name, ymlConfig, globalConfig),
|
||||
common: cfg.NewCommonSettingsFromModule(name, defaultTitle, ymlConfig, globalConfig),
|
||||
|
||||
conflictIcon: ymlConfig.UString("conflictIcon", "🚨"),
|
||||
currentIcon: ymlConfig.UString("currentIcon", "🔸"),
|
||||
|
||||
Reference in New Issue
Block a user