Skip to content

Fix ts_qt empty file bug, show more file previews, and rename "Show file in explorer" to vary based on OS #358

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

Closed
wants to merge 6 commits into from

Conversation

SupKittyMeow
Copy link
Contributor

Previously, when you pressed the forward arrow and there wasn't anything to go forward with, it would raise this error:
TypeError: object of type 'bool' has no len() Calling NavForward with Content:False, Index:0, PageCount:0 Traceback (most recent call last): File "/Users/maxpersonal/Downloads/TagStudio/tagstudio/src/qt/ts_qt.py", line 1008, in nav_forward self.update_thumbs() File "/Users/maxpersonal/Downloads/TagStudio/tagstudio/src/qt/ts_qt.py", line 1218, in update_thumbs if i < len(self.nav_frames[self.cur_frame_idx].contents):
This has been fixed.

Second, I made it so Python, C, C++, C#, and Yaml files are rendered as plain text.

Lastly, I made it so it either says reveal in Finder or show in explorer based on the operating system. I don't know what it usually says on Linux, as I've never used it, so I made it stay the same, but somebody else could change this later.

@CyanVoxel
Copy link
Member

This PR is trying to do a lot of separate things at once. I would suggest breaking it up into separate PRs for each issue, and opening any bug reports for bugs you're trying to address that don't already have open issues. That way myself and others can attempt to replicate and verify the issues first.

In addition, the PLAINTEXT_TYPES constants list was removed and refactored in #331 on the Alpha-v9.4 branch.

@SupKittyMeow
Copy link
Contributor Author

This PR is trying to do a lot of separate things at once. I would suggest breaking it up into separate PRs for each issue, and opening any bug reports for bugs you're trying to address that don't already have open issues. That way myself and others can attempt to replicate and verify the issues first.

In addition, the PLAINTEXT_TYPES constants list was removed and refactored in #331 on the Alpha-v9.4 branch.

Oh okay. So should I close this and reopen multiple pull requests?

@CyanVoxel
Copy link
Member

Oh okay. So should I close this and reopen multiple pull requests?

That would be preferred 👍

@SupKittyMeow
Copy link
Contributor Author

Oh okay. So should I close this and reopen multiple pull requests?

That would be preferred 👍

Okay, closing now.

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.

4 participants