Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters of FileDialog not working #145

Closed
PTKDrake opened this issue Jul 9, 2022 · 2 comments
Closed

Filters of FileDialog not working #145

PTKDrake opened this issue Jul 9, 2022 · 2 comments

Comments

@PTKDrake
Copy link

PTKDrake commented Jul 9, 2022

Yue Version: gui@0.11.0
Operating System: Windows 11

Code:

let fp = '';
    const dialog = gui.FileOpenDialog.create();
    dialog.setTitle('Select Symbol File');
    dialog.setFilters([
        {description: 'Symbol File', extensions: ['jpg', 'png']}
    ]);
    if (dialog.runForWindow(win)) {
        fp = dialog.getResult();
        console.log(fp);
    }

I tried changing the extension to *.png or .png neither worked.

image

@PTKDrake
Copy link
Author

Can anyone help me please?

@zcbenz
Copy link
Member

zcbenz commented Jun 11, 2023

Fixed with 7c3346b.

@zcbenz zcbenz closed this as completed Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants