fix: Don't load workspaces from non-writable places since they can't be updated then

This commit is contained in:
WerWolv
2025-08-13 17:32:04 +02:00
parent d8ad23630a
commit 95ae5a26ed

View File

@@ -165,7 +165,8 @@ namespace hex {
void WorkspaceManager::reload() {
WorkspaceManager::reset();
for (const auto &defaultPath : paths::Workspaces.read()) {
// Explicitly only search paths that are writable so the workspaces can be modified
for (const auto &defaultPath : paths::Workspaces.write()) {
for (const auto &entry : std::fs::directory_iterator(defaultPath)) {
if (!entry.is_regular_file()) {
continue;