diff --git a/lib/libimhex/source/api/layout_manager.cpp b/lib/libimhex/source/api/layout_manager.cpp index 761ac4d0a..783cc2e9e 100644 --- a/lib/libimhex/source/api/layout_manager.cpp +++ b/lib/libimhex/source/api/layout_manager.cpp @@ -41,7 +41,7 @@ namespace hex { std::fs::path layoutPath; for (const auto &path : hex::fs::getDefaultPaths(fs::ImHexPath::Layouts)) { - if (!hex::fs::isPathWritable(layoutPath)) + if (!hex::fs::isPathWritable(path)) continue; layoutPath = path / fileName;