Switch log types to enum

This commit is contained in:
Yousef Khadadeh 2026-05-16 21:56:58 +03:00
parent 24b2be60e5
commit 4c14c3dc57
27 changed files with 203 additions and 105 deletions

View file

@ -102,7 +102,7 @@ void FileSelectScreen::update_file_list(std::vector<FileInfo>& fL, const std::fi
if(daysSinceMovedToTrash >= DAYS_TO_DELETION) {
// Remove file and thumbnail
std::filesystem::path thumbnailPath = folderPath / (fileInfoToAdd.fileName + ".jpg");
Logger::get().log("INFO", "Deleting file in trash: " + fullPath.string() + " with thumbnail: " + thumbnailPath.string());
Logger::get().log(Logger::LogType::INFO, "Deleting file in trash: " + fullPath.string() + " with thumbnail: " + thumbnailPath.string());
SDL_RemovePath(fullPath.string().c_str());
SDL_RemovePath(thumbnailPath.string().c_str());
saveInfo.trash.files.erase(it);