Moved the code from src to the root.

This commit is contained in:
2024-02-12 22:21:47 +06:00
parent 154cd1c7dd
commit c4ec958576
35 changed files with 29 additions and 30 deletions

11
helper/helper.go Normal file
View File

@@ -0,0 +1,11 @@
package helper
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/dialog"
)
func FileDialogResize(fileDialog *dialog.FileDialog, w fyne.Window) {
contentSize := w.Content().Size()
fileDialog.Resize(fyne.Size{Width: contentSize.Width - 50, Height: contentSize.Height - 50})
}