Fixed cache problem after rule clone

This commit is contained in:
2021-06-20 22:24:17 +02:00
parent 82156059fa
commit e445b787a9
4 changed files with 62 additions and 20 deletions

View File

@ -174,6 +174,15 @@ public class Rule implements Comparable<Rule>
Miscellaneous.logEvent("i", "Rule", "Creating rule: " + this.toString(), 3);
ruleCollection.add(this);
boolean returnValue = XmlFileInterface.writeFile();
try
{
XmlFileInterface.readFile();
}
catch(Exception e)
{
Miscellaneous.logEvent("w", "Read file", Log.getStackTraceString(e), 3);
}
if(returnValue)
{