Remove bbolt database dependency

Replaced bbolt-based database handling with Fyne built-in preferences for storing application settings. Deleted migration logic, database initialization, and error handling related to bbolt, simplifying the codebase and reducing external dependencies.
This commit is contained in:
2025-05-30 00:34:33 +05:00
parent 7340f43d6e
commit d69767f5e9
24 changed files with 67 additions and 259 deletions

View File

@@ -55,10 +55,7 @@ func (t theme) List() map[string]ThemeInfoContract {
}
func (t theme) SetCurrentTheme(themeInfo ThemeInfoContract) error {
_, err := t.repository.Save(themeInfo.GetName())
if err != nil {
return err
}
_ = t.repository.Save(themeInfo.GetName())
if themeInfo.GetName() == "default" {
t.app.GetAppFyne().Settings().SetTheme(fyneTheme.DefaultTheme())