1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Crash when clearing old logs on exit

This commit is contained in:
WerWolv 2023-06-11 09:44:34 +02:00
parent e8ca139246
commit ee57c449e7

View File

@ -445,7 +445,7 @@ namespace hex::init {
}
bool clearOldLogs() {
for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Logs, true)) {
for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Logs)) {
std::vector<std::filesystem::directory_entry> files;
for (const auto& file : std::filesystem::directory_iterator(path))