Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Check whether screenshot creation succeeded and report otherwise
This displays an actual error message in the UI if screenshot creation fails, instead of just saying "Screenshot Done" and assuming the best (???). NOTE: I could make it so display::screenshot() returns an object including both the operation's result and the SDL_GetError text if applicable, but I don't see the point for complicating this code further right now, since it's relatively rare for screenshot creation to fail. Furthermore, SDL_GetError's text is not translatable, which is a major inconvenience for us. The current error message is horribly general in scope and may not accurately represent the actual issue at hand, but I think it's better than asking users to check "the log" (which basic users don't really know about) and read text that they might not even understand if they don't know English. Someone who really wants to know what's going on will ask us for help and we'll tell them how to access the log with details anyway.
- Loading branch information