code cleanup
This commit is contained in:
parent
eac51b1a12
commit
3ffe8dcd55
|
@ -114,6 +114,8 @@ namespace SparkleShare {
|
||||||
string repo_info = reader.ReadToEnd ();
|
string repo_info = reader.ReadToEnd ();
|
||||||
reader.Close ();
|
reader.Close ();
|
||||||
|
|
||||||
|
File.Delete (repo_config_file_path);
|
||||||
|
|
||||||
string new_repo_info = repo_info + "\n" + user_info;
|
string new_repo_info = repo_info + "\n" + user_info;
|
||||||
|
|
||||||
TextWriter writer = new StreamWriter (repo_config_file_path);
|
TextWriter writer = new StreamWriter (repo_config_file_path);
|
||||||
|
|
|
@ -168,6 +168,7 @@ namespace SparkleShare {
|
||||||
if (!File.Exists (desktopfile_path)) {
|
if (!File.Exists (desktopfile_path)) {
|
||||||
|
|
||||||
if (!Directory.Exists (apps_path))
|
if (!Directory.Exists (apps_path))
|
||||||
|
|
||||||
Directory.CreateDirectory (apps_path);
|
Directory.CreateDirectory (apps_path);
|
||||||
|
|
||||||
TextWriter writer = new StreamWriter (desktopfile_path);
|
TextWriter writer = new StreamWriter (desktopfile_path);
|
||||||
|
|
Loading…
Reference in a new issue