Skip to content

Commit

Permalink
do not allow scale 0 that causes infinite text size
Browse files Browse the repository at this point in the history
  • Loading branch information
fpabl0 authored and andydotxyz committed Feb 25, 2021
1 parent 556e824 commit f862295
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/fyne_settings/settings/appearance.go
Expand Up @@ -75,6 +75,9 @@ func (s *Settings) LoadAppearanceScreen(w fyne.Window) fyne.CanvasObject {
box.Add(widget.NewCard("Appearance", "", appearance))
bottom := container.NewHBox(layout.NewSpacer(),
&widget.Button{Text: "Apply", Importance: widget.HighImportance, OnTapped: func() {
if s.fyneSettings.Scale == 0.0 {
s.chooseScale(1.0)
}
err := s.save()
if err != nil {
fyne.LogError("Failed on saving", err)
Expand Down

0 comments on commit f862295

Please sign in to comment.