Skip to content

Commit

Permalink
Fix some dialogs' size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexballas committed Jan 4, 2025
1 parent 9b6e831 commit afc5056
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/gui/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func settingsWindow(s *FyneScreen) fyne.CanvasObject {
})

ffmpegFolderSelect := widget.NewButtonWithIcon("", theme.FolderOpenIcon(), func() {
dialog.ShowFolderOpen(func(lu fyne.ListableURI, err error) {
fd := dialog.NewFolderOpen(func(lu fyne.ListableURI, err error) {
if err != nil {
dialog.ShowError(err, w)
return
Expand All @@ -64,6 +64,10 @@ func settingsWindow(s *FyneScreen) fyne.CanvasObject {
p := filepath.ToSlash(lu.Path() + string(filepath.Separator) + "ffmpeg")
ffmpegTextEntry.SetText(p)
}, w)

fd.Resize(fyne.NewSize(w.Canvas().Size().Width*1.2, w.Canvas().Size().Height*1.3))
fd.Show()

})

ffmpegRightButtons := container.NewHBox(ffmpegFolderSelect, ffmpegFolderReset)
Expand Down Expand Up @@ -102,7 +106,7 @@ func settingsWindow(s *FyneScreen) fyne.CanvasObject {
return
}

dialog.ShowFileSave(func(writer fyne.URIWriteCloser, err error) {
fd := dialog.NewFileSave(func(writer fyne.URIWriteCloser, err error) {
if err != nil {
dialog.ShowError(err, s.Current)
return
Expand All @@ -114,6 +118,8 @@ func settingsWindow(s *FyneScreen) fyne.CanvasObject {
saveDebugLogs(writer, s)
}, s.Current)

fd.Resize(fyne.NewSize(w.Canvas().Size().Width*1.2, w.Canvas().Size().Height*1.3))
fd.Show()
})

gaplessText := widget.NewLabel(lang.L("Gapless Playback"))
Expand Down

0 comments on commit afc5056

Please sign in to comment.