adam-gui/vendor/fyne.io/fyne/v2/app/preferences_mobile.go
2024-04-29 19:13:50 +02:00

21 lines
476 B
Go

//go:build mobile
// +build mobile
package app
import "path/filepath"
// storagePath returns the location of the settings storage
func (p *preferences) storagePath() string {
return filepath.Join(p.app.storageRoot(), "preferences.json")
}
// storageRoot returns the location of the app storage
func (a *fyneApp) storageRoot() string {
return filepath.Join(rootConfigDir(), a.UniqueID())
}
func (p *preferences) watch() {
// no-op as we are in mobile simulation mode
}