Skip to content

Dropping folders panics on windows #608

@CptPotato

Description

@CptPotato

Folders can't be opened as files. When dropping a directory onto the window miniquad panics here:

d.dropped_files.bytes.push(std::fs::read(&path).unwrap());

I could maybe submit a PR. Which would you prefer, making file content optional (seems to be in line with macroquad) or filtering out paths that cannot be read?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions