From 477e2a119b68fbe203d7cc8286fa8bd9e7d8af8f Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 13 Sep 2022 14:30:58 +0200 Subject: [PATCH] add log and use monospace --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index a205629..ce58b68 100644 --- a/main.go +++ b/main.go @@ -171,6 +171,7 @@ func updateConfigFile(config Config, content string) error { func createTextarea() *widget.Entry { textarea := widget.NewMultiLineEntry() + textarea.TextStyle.Monospace = true textarea.OnChanged = func(text string) { textarea.SetMinRowsVisible(strings.Count(text, "\n")) textarea.Refresh() @@ -251,6 +252,8 @@ func createTab(config Config) *fyne.Container { updateTextareaConfiguration(textareaConfiguration, configuration) err := updateConfigFile(config, configuration) + log.Println("Configuration of", config.Name) + if err != nil { updateNotice(notice, fmt.Sprintf("Error while updating: %s", err), red, true, false) } else {