Skip to content

Commit 9818481

Browse files
committed
[Core] Fixed Config class' built-in write() method
1 parent e2bf274 commit 9818481

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

include/parasol/modules/core.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3497,8 +3497,9 @@ class objConfig : public Object {
34973497
if (!group.compare(Group)) {
34983498
if (auto it = keys.find(Key); it != keys.end()) {
34993499
it->second.assign(Value);
3500-
return ERR::Okay;
35013500
}
3501+
else keys.emplace(Key, Value);
3502+
return ERR::Okay;
35023503
}
35033504
}
35043505

src/core/defs/core.fdl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ inline ENUMTYPE &operator &= (ENUMTYPE &a, ENUMTYPE b) { return (ENUMTYPE &)(((_
114114
flags("VOLUME", { comment="Options for SetVolume()" },
115115
"REPLACE: If the volume already exists, all paths that are attached to it will be replaced with the new path setting.",
116116
"PRIORITY: If the volume already exists, the path will be inserted at the beginning of the path list so that it has priority over the others.",
117-
"HIDDEN: Hides the volume so that it will not show up when reading the root folder.",
118-
"SYSTEM: Identifies the volume as being created by the system, is immutable and persistent between sessions.")
117+
"HIDDEN: Hides the volume so that it will not show up when reading volumes from the root path `:`.",
118+
"SYSTEM: Identifies the volume as being created by the system (this flag is not for client use).")
119119

120120
flags("FDL", { comment="Options for the File Delete() method." },
121121
"FEEDBACK: Automatically manage user feedback for deleting files by presenting dialog boxes.")
@@ -2061,8 +2061,9 @@ inline CLASSID Object::baseClassID() { return Class->BaseClassID; }
20612061
if (!group.compare(Group)) {
20622062
if (auto it = keys.find(Key); it != keys.end()) {
20632063
it->second.assign(Value);
2064-
return ERR::Okay;
20652064
}
2065+
else keys.emplace(Key, Value);
2066+
return ERR::Okay;
20662067
}
20672068
}
20682069

0 commit comments

Comments
 (0)