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