ENH:synced some N1 codes

jira:[sync]

Change-Id: I94aed7f068e76cb28459ec77448c89f922134414
This commit is contained in:
tao wang 2023-09-14 14:28:39 +08:00 committed by Lane.Wei
parent 95a235ee8a
commit b048992715
8 changed files with 47 additions and 26 deletions

View file

@ -310,6 +310,9 @@ std::map<std::string, std::vector<json>> ProjectPanel::Reload(wxString aux_path)
pfile_obj["filename"] = wxGetApp().url_encode(file_path_obj.filename().string().c_str());
pfile_obj["size"] = formatBytes((unsigned long)filelen);
std::string file_extension = file_path_obj.extension().string();
boost::algorithm::to_lower(file_extension);
//image
if (file_extension == ".jpg" ||
file_extension == ".jpeg" ||