mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Don't load workspaces from non-writable places since they can't be updated then
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user