mirror of
https://github.com/taigrr/crocgui
synced 2025-01-18 04:03:16 -08:00
save default settings
This commit is contained in:
parent
f9c5813713
commit
ebe2f1d6d3
15
main.go
15
main.go
@ -17,13 +17,14 @@ func main() {
|
||||
a := app.NewWithID("com.github.howeyc.crocgui")
|
||||
w := a.NewWindow("croc")
|
||||
|
||||
a.Preferences().StringWithFallback("relay-address", "croc.schollz.com:9009")
|
||||
a.Preferences().StringWithFallback("relay-password", "pass123")
|
||||
a.Preferences().StringWithFallback("relay-ports", "9009,9010,9011,9012,9013")
|
||||
a.Preferences().BoolWithFallback("disable-local", true)
|
||||
a.Preferences().BoolWithFallback("force-local", false)
|
||||
a.Preferences().BoolWithFallback("disable-multiplexing", false)
|
||||
a.Preferences().BoolWithFallback("disable-compression", false)
|
||||
// Defaults
|
||||
a.Preferences().SetString("relay-address", a.Preferences().StringWithFallback("relay-address", "croc.schollz.com:9009"))
|
||||
a.Preferences().SetString("relay-password", a.Preferences().StringWithFallback("relay-password", "pass123"))
|
||||
a.Preferences().SetString("relay-ports", a.Preferences().StringWithFallback("relay-ports", "9009,9010,9011,9012,9013"))
|
||||
a.Preferences().SetBool("disable-local", a.Preferences().BoolWithFallback("disable-local", true))
|
||||
a.Preferences().SetBool("force-local", a.Preferences().BoolWithFallback("force-local", false))
|
||||
a.Preferences().SetBool("disable-multiplexing", a.Preferences().BoolWithFallback("disable-multiplexing", false))
|
||||
a.Preferences().SetBool("disable-compression", a.Preferences().BoolWithFallback("disable-compression", false))
|
||||
|
||||
textlogores := fyne.NewStaticResource("text-logo", textlogobytes)
|
||||
textlogo := canvas.NewImageFromResource(textlogores)
|
||||
|
@ -1,2 +1,3 @@
|
||||
- Add license info
|
||||
- Update to show filename for content:// URI on android
|
||||
- Save defaults on start so settings tab also shows defaults
|
||||
|
Loading…
x
Reference in New Issue
Block a user