From 1c321b7de2b104c1b2b0d0648d65b55a61d7cdcd Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 17 Oct 2021 22:23:01 +0200 Subject: [PATCH] store: Remove extracted tar content when deleting tar --- source/views/view_store.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/views/view_store.cpp b/source/views/view_store.cpp index 26c782cd7..2cfb3f3f3 100644 --- a/source/views/view_store.cpp +++ b/source/views/view_store.cpp @@ -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()); + } } } \ No newline at end of file