Skip to content

Commit

Permalink
Merge pull request #817 from ademenev/patch-1
Browse files Browse the repository at this point in the history
Fix app crash
  • Loading branch information
andydotxyz authored Apr 6, 2020
2 parents 79219c2 + 7b5c992 commit ed30d67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed30d67

Please sign in to comment.