From 50e59f39ef6d157b4189a256eddccfc70e775629 Mon Sep 17 00:00:00 2001 From: Andrey Demenev Date: Mon, 6 Apr 2020 13:46:35 +1000 Subject: [PATCH 1/2] Fix app crash Fixes #816 --- app/app.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index c00345df00..58609fa381 100644 --- a/app/app.go +++ b/app/app.go @@ -96,9 +96,10 @@ func NewAppWithDriver(d fyne.Driver, id string) fyne.App { } else { prefs = loadPreferences(id) } - newApp := &fyneApp{uniqueID: id, driver: d, settings: loadSettings(), + newApp := &fyneApp{uniqueID: id, driver: d, prefs: prefs, exec: exec.Command} fyne.SetCurrentApp(newApp) + newApp.settings = loadSettings(); listener := make(chan fyne.Settings) newApp.Settings().AddChangeListener(listener) From 7b5c9925aadc0f7e628ccdf08ccbddd65ba4bb02 Mon Sep 17 00:00:00 2001 From: Andrey Demenev Date: Tue, 7 Apr 2020 00:11:32 +1000 Subject: [PATCH 2/2] Remove trailing semicolon --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index 58609fa381..e69e7aab11 100644 --- a/app/app.go +++ b/app/app.go @@ -99,7 +99,7 @@ func NewAppWithDriver(d fyne.Driver, id string) fyne.App { newApp := &fyneApp{uniqueID: id, driver: d, prefs: prefs, exec: exec.Command} fyne.SetCurrentApp(newApp) - newApp.settings = loadSettings(); + newApp.settings = loadSettings() listener := make(chan fyne.Settings) newApp.Settings().AddChangeListener(listener)