in app.go [126:149]
func (b *App) OpenArchive() string {
path, _ := wailsruntime.OpenFileDialog(b.ctx, wailsruntime.OpenDialogOptions{
DefaultDirectory: "",
DefaultFilename: "",
Title: "Open archive with logs",
Filters: []wailsruntime.FileFilter{
{
DisplayName: "",
Pattern: "*.zip",
},
},
ShowHiddenFiles: false,
CanCreateDirectories: false,
ResolvesAliases: false,
TreatPackagesAsDirectories: false,
},
)
if path == "" {
return ""
}
unzippedDir := backend.UnzipToTempFodler(path)
log.Println("Unzipped files to path: " + path)
return unzippedDir
}