fix: Crash when clearing old logs on exit
This commit is contained in:
parent
e8ca139246
commit
ee57c449e7
@ -445,7 +445,7 @@ namespace hex::init {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool clearOldLogs() {
|
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;
|
std::vector<std::filesystem::directory_entry> files;
|
||||||
|
|
||||||
for (const auto& file : std::filesystem::directory_iterator(path))
|
for (const auto& file : std::filesystem::directory_iterator(path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user