add log and use monospace
This commit is contained in:
parent
90c88e3672
commit
477e2a119b
3
main.go
3
main.go
|
@ -171,6 +171,7 @@ func updateConfigFile(config Config, content string) error {
|
||||||
|
|
||||||
func createTextarea() *widget.Entry {
|
func createTextarea() *widget.Entry {
|
||||||
textarea := widget.NewMultiLineEntry()
|
textarea := widget.NewMultiLineEntry()
|
||||||
|
textarea.TextStyle.Monospace = true
|
||||||
textarea.OnChanged = func(text string) {
|
textarea.OnChanged = func(text string) {
|
||||||
textarea.SetMinRowsVisible(strings.Count(text, "\n"))
|
textarea.SetMinRowsVisible(strings.Count(text, "\n"))
|
||||||
textarea.Refresh()
|
textarea.Refresh()
|
||||||
|
@ -251,6 +252,8 @@ func createTab(config Config) *fyne.Container {
|
||||||
updateTextareaConfiguration(textareaConfiguration, configuration)
|
updateTextareaConfiguration(textareaConfiguration, configuration)
|
||||||
err := updateConfigFile(config, configuration)
|
err := updateConfigFile(config, configuration)
|
||||||
|
|
||||||
|
log.Println("Configuration of", config.Name)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
updateNotice(notice, fmt.Sprintf("Error while updating: %s", err), red, true, false)
|
updateNotice(notice, fmt.Sprintf("Error while updating: %s", err), red, true, false)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue