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

Open File: Add filter example #60

Merged
merged 11 commits into from
Jan 23, 2024
Merged

Open File: Add filter example #60

merged 11 commits into from
Jan 23, 2024

Conversation

Sahil-Shadwal
Copy link
Contributor

@Sahil-Shadwal Sahil-Shadwal commented Jan 15, 2024

Fixes #4

Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no point in having so many filters.

I think a good demonstration would be to add a new button below "Open Multiple Files" that says "Open Image" with the filter for image files

@Sahil-Shadwal
Copy link
Contributor Author

I don't think we would be needing another button , it's fine. We can just add text , image audio and video filter. But if you say I can add a button specially for image .

@sonnyp
Copy link
Contributor

sonnyp commented Jan 15, 2024

You have presented no argument that would make me change my mind :)

@Sahil-Shadwal
Copy link
Contributor Author

Screencast from 2024-01-16 10-23-25.webm
I mean this looks good , demonstrating the use of filter according too their needs. If we specify a button saying image filter wont it beat the point of adding the filters if there are not options.

@Sahil-Shadwal
Copy link
Contributor Author

image

@sonnyp
Copy link
Contributor

sonnyp commented Jan 16, 2024

The filter is for the app not for the user.
It's a way for the app to restrict the type of file to open.

For example a social media app would have an option to share an image. Zip files wouldn't work so you restrict the file picker to images only.

There is no case where an app would filter with the options you proposed instead of accepting any file.

@Sahil-Shadwal
Copy link
Contributor Author

Sorry for the misunderstanding, so should i add the image filter button below open multiple files?

@sonnyp
Copy link
Contributor

sonnyp commented Jan 16, 2024

sounds good

@Sahil-Shadwal
Copy link
Contributor Author

image
Is this alright ?

@sonnyp
Copy link
Contributor

sonnyp commented Jan 17, 2024

Please follow my suggestion - "Open Image"

@Sahil-Shadwal
Copy link
Contributor Author

Did the changes u asked for , and sorry for being another Jr. Developer.
Please review it whenever u get the time .
Screenshot from 2024-01-17 18-03-13

Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please also update the Vala and Python code.

@Sahil-Shadwal
Copy link
Contributor Author

Yup, will do . Thanks

@Sahil-Shadwal
Copy link
Contributor Author

Updated the code for vala and python .

@sonnyp sonnyp changed the title Added filter for various file types . Open File: Add filter example Jan 23, 2024
@sonnyp sonnyp merged commit 7e6c6bc into workbenchdev:main Jan 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add filter to FileDialog Lbrary entry
4 participants