preferences_mobile.go 476 B

1234567891011121314151617181920
  1. //go:build mobile
  2. // +build mobile
  3. package app
  4. import "path/filepath"
  5. // storagePath returns the location of the settings storage
  6. func (p *preferences) storagePath() string {
  7. return filepath.Join(p.app.storageRoot(), "preferences.json")
  8. }
  9. // storageRoot returns the location of the app storage
  10. func (a *fyneApp) storageRoot() string {
  11. return filepath.Join(rootConfigDir(), a.UniqueID())
  12. }
  13. func (p *preferences) watch() {
  14. // no-op as we are in mobile simulation mode
  15. }