Skip to content

Commit

Permalink
splash: move used xdgopen func internal
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Jan 30, 2024
1 parent c49245f commit 72ac44b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion splash/dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (ui *Splash) Dialog(txt string, user bool) (r bool) {
Ops: &ops,
Constraints: layout.Constraints{
Min: image.Point{X: 64, Y: 38},
Max: image.Point{X: width, Y: width*2},
Max: image.Point{X: width, Y: width * 2},
},
}
defer ops.Reset()
Expand Down
3 changes: 1 addition & 2 deletions splash/splash.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"gioui.org/unit"
"gioui.org/widget"
"gioui.org/widget/material"
"github.com/vinegarhq/vinegar/util"
)

//go:embed vinegar.png
Expand Down Expand Up @@ -187,7 +186,7 @@ func (ui *Splash) Run() error {

if ui.openLogButton.Clicked(gtx) {
log.Printf("Opening log file: %s", ui.LogPath)
err := util.XDGOpen(ui.LogPath).Start()
err := XDGOpen(ui.LogPath).Start()
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion util/xdg.go → splash/xdg.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package splash

import (
"os"
Expand Down

0 comments on commit 72ac44b

Please sign in to comment.