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 zim location in file manager #970

Merged
merged 4 commits into from
Aug 4, 2023
Merged

Open zim location in file manager #970

merged 4 commits into from
Aug 4, 2023

Conversation

juuz0
Copy link
Collaborator

@juuz0 juuz0 commented Aug 2, 2023

Fixes #98
Fixes #971

@kelson42
Copy link
Collaborator

kelson42 commented Aug 2, 2023

@juuz0 Thx, will review later today!

Copy link
Member

@mgautierfr mgautierfr left a comment

Choose a reason for hiding this comment

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

I have not tested the functional part.
On the code part, only a small code change and we are good.

src/contentmanager.cpp Outdated Show resolved Hide resolved
Earlier, context menu showed "Open"/"Delete" options only in local library.
This doesn't make sense when browsing the remote library - already downloaded files should show "Open"/"Delete" instead of "Download book"
Added translations for context menu options:
Delete book
Download book
Open Book
Resume Download
Pause Download
Cancel download
@kelson42
Copy link
Collaborator

kelson42 commented Aug 2, 2023

I will check and merge, but clearly the edge case to test is the handling of exception if the folder is not redable or not available.

Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

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

Seems to work, but we should have a proper error message if not possible to open a folder. Something like "Kiwix is not able to open folder xyz`.

@juuz0
Copy link
Collaborator Author

juuz0 commented Aug 3, 2023

Something like "Kiwix is not able to open folder xyz`.

Done. Added checks if directory exists/isReadable

Added an option to open the zim's location in the OS's file manager
@kelson42
Copy link
Collaborator

kelson42 commented Aug 3, 2023

@mgautierfr Good for you or still have concerns regarding current implementation/solution?

@mgautierfr mgautierfr merged commit 8fa0634 into main Aug 4, 2023
4 checks passed
@mgautierfr mgautierfr deleted the openFolder branch August 4, 2023 09:02
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.

App crash on mouse right click in local library Add "Open folder" command to right-click menu
3 participants