tolower on extension
This commit is contained in:
parent
8e1b718d7f
commit
f4344ade53
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include <boost/property_tree/json_parser.hpp>
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include "main.h"
|
||||
#include "utility.h"
|
||||
|
|
@ -206,7 +207,7 @@ std::string proc_t::get_app_image(int app_id) {
|
|||
}
|
||||
|
||||
auto image_extension = std::filesystem::path(app_image_path).extension().string();
|
||||
image_extension = image_extension.substr(1, image_extension.length() - 1);
|
||||
boost::to_lower(image_extension);
|
||||
|
||||
std::error_code code;
|
||||
if (!std::filesystem::exists(app_image_path, code) || image_extension != "png") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue