新增: Bing 壁纸多市场获取/2000张历史/第三方图源/dislike/重下/方向修复
This commit is contained in:
@@ -68,6 +68,7 @@ type Config struct {
|
||||
HideKnowledge bool `json:"hideKnowledge"`
|
||||
SavedColors []SavedColor `json:"savedColors"`
|
||||
BingAutoRefresh bool `json:"bingAutoRefresh"`
|
||||
BingMarkets []string `json:"bingMarkets,omitempty"`
|
||||
AutoStart bool `json:"autoStart"`
|
||||
QWeatherKey string `json:"qweatherKey,omitempty"`
|
||||
TianapiKey string `json:"tianapiKey,omitempty"`
|
||||
@@ -116,6 +117,9 @@ func loadConfig() *Config {
|
||||
if cfg.Layout == "" {
|
||||
cfg.Layout = LayoutSingle
|
||||
}
|
||||
if len(cfg.BingMarkets) == 0 {
|
||||
cfg.BingMarkets = []string{"zh-CN", "en-US", "ja-JP", "de-DE", "fr-FR", "en-GB", "ko-KR", "ru-RU", "pt-BR", "es-ES"}
|
||||
}
|
||||
return &cfg
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user