Skip to content

When I call the SelectFile method, it occasionally reports: Incorrect function #118

@dongshaoyang

Description

@dongshaoyang
func OpenDir() (string, error) {
	path, err := zenity.SelectFile(zenity.Directory())
	if zenity.ErrCanceled == err {
		log.Info("the cancel button is pressed")
		return "", fmt.Errorf("the cancel button is pressed")
	} else if err != nil {
		log.Error("Exception:", err)
		return "", err //it occasionally reports: Incorrect function
	}
	return path, err
}

The code runs on the Windows platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions