storage test fixes

This commit is contained in:
nkanaev
2026-06-18 11:47:21 +01:00
parent 7de4879a96
commit 5110fbd596
5 changed files with 19 additions and 35 deletions

View File

@@ -156,6 +156,21 @@ func (s Settings) Map() map[string]any {
}
}
func SettingsDefault() Settings {
return Settings{
Filter: "",
Feed: "",
FeedListWidth: 300,
ItemListWidth: 300,
SortNewestFirst: true,
ThemeName: "light",
ThemeFont: "",
ThemeSize: 1,
RefreshRate: 0,
Language: "en",
}
}
type FeedState struct {
FeedID int64
LastRefreshed time.Time