If options don't exist in config, create them!
This commit is contained in:
parent
877eb11435
commit
046199428b
|
@ -132,6 +132,13 @@ namespace SparkleLib {
|
||||||
|
|
||||||
set {
|
set {
|
||||||
XmlNode node = SelectSingleNode ("/sparkleshare/user/previous-server/text()");
|
XmlNode node = SelectSingleNode ("/sparkleshare/user/previous-server/text()");
|
||||||
|
if (null == node) {
|
||||||
|
XmlNode parentNode = SelectSingleNode ("/sparkleshare/user");
|
||||||
|
node = CreateNode (XmlNodeType.Element, "previous-server", null);
|
||||||
|
node.InnerText="False";
|
||||||
|
|
||||||
|
parentNode.AppendChild(node);
|
||||||
|
}
|
||||||
node.InnerText = value;
|
node.InnerText = value;
|
||||||
|
|
||||||
Save ();
|
Save ();
|
||||||
|
@ -149,6 +156,13 @@ namespace SparkleLib {
|
||||||
|
|
||||||
set {
|
set {
|
||||||
XmlNode node = SelectSingleNode ("/sparkleshare/user/previous-folder/text()");
|
XmlNode node = SelectSingleNode ("/sparkleshare/user/previous-folder/text()");
|
||||||
|
if (null == node) {
|
||||||
|
XmlNode parentNode = SelectSingleNode ("/sparkleshare/user");
|
||||||
|
node = CreateNode (XmlNodeType.Element, "previous-folder", null);
|
||||||
|
node.InnerText="False";
|
||||||
|
|
||||||
|
parentNode.AppendChild(node);
|
||||||
|
}
|
||||||
node.InnerText = value;
|
node.InnerText = value;
|
||||||
|
|
||||||
Save ();
|
Save ();
|
||||||
|
|
Loading…
Reference in a new issue