store: Remove extracted tar content when deleting tar

This commit is contained in:
WerWolv 2021-10-17 22:23:01 +02:00
parent e3cf364903
commit 1c321b7de2
1 changed files with 3 additions and 1 deletions

View File

@ -263,8 +263,10 @@ namespace hex {
}
void ViewStore::remove(ImHexPath pathType, const std::string &fileName) {
for (const auto &path : hex::getPath(pathType))
for (const auto &path : hex::getPath(pathType)) {
fs::remove(path / fs::path(fileName));
fs::remove(path / fs::path(fileName).stem());
}
}
}