Skip to content

Commit d97d00b

Browse files
committed
changed format was made persistent
1 parent dd05e0d commit d97d00b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/net/sharksystem/asap/ASAPEngineFS.java

+13-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ public static ASAPEngine getExistingASAPEngineFS(String rootDirectory)
4949
return ASAPEngineFS.getASAPEngineFS(null, rootDirectory, null);
5050
}
5151

52+
/**
53+
* get / create engine
54+
* @param owner
55+
* @param rootDirectory
56+
* @param format
57+
* @return
58+
* @throws IOException
59+
* @throws ASAPException
60+
*/
5261
public static ASAPEngine getASAPEngine(String owner, String rootDirectory, CharSequence format)
5362
throws IOException, ASAPException {
5463

@@ -129,9 +138,11 @@ static ASAPEngineFS getASAPEngineFS(String owner, String rootDirectory, CharSequ
129138
&& !owner.equalsIgnoreCase(DEFAULT_OWNER)
130139
) {
131140
engine.owner = owner;
132-
mementoFS.save(engine);
133141
}
134-
142+
143+
// save changes
144+
mementoFS.save(engine);
145+
135146
return engine;
136147
}
137148

src/net/sharksystem/asap/MultiASAPEngineFS_Impl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public ASAPEngine createEngineByFormat(CharSequence format) throws ASAPException
150150
}
151151

152152
String folderName = this.getEngineFolderByAppName(format);
153-
ASAPEngine asapEngine = this.getASAPEngine(format);
153+
ASAPEngine asapEngine = ASAPEngineFS.getASAPEngine(String.valueOf(this.getOwner()), folderName, format);
154154
this.folderMap.put(format, new EngineSetting(folderName, listener));
155155

156156
return asapEngine;

0 commit comments

Comments
 (0)