repo base: use new config scheme to get the user name's and email
This commit is contained in:
parent
f4fe759994
commit
2e075959c4
|
@ -452,16 +452,7 @@ namespace SparkleLib {
|
|||
protected string UserName
|
||||
{
|
||||
get {
|
||||
string global_config_file_path = Path.Combine (SparklePaths.SparkleConfigPath, "config.xml");
|
||||
|
||||
if (!File.Exists (global_config_file_path))
|
||||
return "";
|
||||
|
||||
XmlDocument xml = new XmlDocument();
|
||||
xml.Load (global_config_file_path);
|
||||
|
||||
XmlNode node = xml.SelectSingleNode("//user/name/text()");
|
||||
return node.Value;
|
||||
return SparkleConfig.DefaultConfig.UserName;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -469,16 +460,7 @@ namespace SparkleLib {
|
|||
protected string UserEmail
|
||||
{
|
||||
get {
|
||||
string global_config_file_path = Path.Combine (SparklePaths.SparkleConfigPath, "config.xml");
|
||||
|
||||
if (!File.Exists (global_config_file_path))
|
||||
return "";
|
||||
|
||||
XmlDocument xml = new XmlDocument();
|
||||
xml.Load (global_config_file_path);
|
||||
|
||||
XmlNode node = xml.SelectSingleNode("//user/email/text()");
|
||||
return node.Value;
|
||||
return SparkleConfig.DefaultConfig.UserEmail;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue