feat: draft of excel export

This commit is contained in:
2025-01-07 22:57:39 +07:00
parent 149f40c1f2
commit 4eb8cea525
22 changed files with 14341 additions and 18 deletions

View File

@@ -34,6 +34,11 @@ func ErrorDialog(title string, message string) {
application.ErrorDialog().AttachToWindow(currentWindow).SetTitle(title).SetMessage(message).Show()
}
func SaveFileDialog(title string) {
func SaveFileDialog(title string, filename string) (string, error) {
checkInit()
selection, err := application.SaveFileDialog().AttachToWindow(currentWindow).SetFilename(filename).PromptForSingleSelection()
if err != nil {
return "", err
}
return selection, nil
}