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
Card image loading: Fallback on 404 #3367
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7e31ac2
2479: Running clang-format
andrewzwicky 70ce5f0
2479: Updates to remove set/url indices
andrewzwicky 9f03662
2479: TransformUrl will now error on missing fields
andrewzwicky 61941d3
2479: clang-format updates
andrewzwicky 565df1a
2479: Fixing omission of ! from two properties
andrewzwicky 998015b
2479: Adding prefix on debug messages
andrewzwicky aecc27c
2479: Remove outdated comment
andrewzwicky 2eb7aac
2479: Remove unused method from intermediate work
andrewzwicky b53e60f
2479: Updating QDebug messages to be more consistent
andrewzwicky b09dc4b
Merge branch 'master' of https://github.com/cockatrice/cockatrice int…
andrewzwicky 146477a
2479: clang-format updates
andrewzwicky e95876b
2479: Remove repeated code, replace with call to nextUrl
andrewzwicky f7e2b09
2479: Adding more detailed comments
andrewzwicky ad866b4
2479: Refactor transformUrl
andrewzwicky File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
urlTemplates
list contains a local copy of the unmodified picUrl strings from settingCache; I don't see it being useful in the present since we could just fetch the data from settingsCache here. Maybe you ahve an idea of using it to filter/modify the data coming from settingsCache?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I am planning on updating the settingCache to contain a list of Urls instead of just two. This is in line with what #2479 was proposing. It will just make things easier to add in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My goal was to remove foreach from the codebase. Will get back to fixing this at some point in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZeldaZach in favor of using
map
andfold
functions? Nothing seems really terrible with foreachThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZeldaZach I'm newish to C++, what's the problem / prefered alternative for
foreach
?