Skip to content

Commit

Permalink
fixes from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
qm210 committed Dec 7, 2024
1 parent 6259f73 commit c59a7a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tracker/gioui/preferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func ReadCustomConfigYml(filename string, target interface{}) (exists bool, err
return true, err
}

func NewPreferences() Preferences {
func MakePreferences() Preferences {
preferences := loadDefaultPreferences()
exists, err := ReadCustomConfigYml("preferences.yml", &preferences)
if exists {
Expand Down
4 changes: 2 additions & 2 deletions tracker/gioui/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func NewTracker(model *tracker.Model) *Tracker {
Model: model,

filePathString: model.FilePath().String(),
preferences: NewPreferences(),
preferences: MakePreferences(),
}
t.Theme.Shaper = text.NewShaper(text.WithCollection(fontCollection))
t.PopupAlert = NewPopupAlert(model.Alerts(), t.Theme.Shaper)
Expand Down Expand Up @@ -173,7 +173,7 @@ func (t *Tracker) newWindow() *app.Window {
w.Option(app.Title("Sointu Tracker"))
w.Option(app.Size(t.preferences.WindowSize()))
if t.preferences.Window.Maximized {
w.Option(app.Fullscreen.Option())
w.Option(app.Maximized.Option())
}
return w
}
Expand Down

0 comments on commit c59a7a8

Please sign in to comment.