enable notifications by default
This commit is contained in:
parent
712a0ad4f7
commit
211abf8f15
|
@ -124,11 +124,13 @@ namespace SparkleShare {
|
|||
Process.StartInfo.WorkingDirectory =
|
||||
SparklePaths.SparkleTmpPath;
|
||||
|
||||
Process.StartInfo.Arguments =
|
||||
"clone " + SparkleHelpers.CombineMore (RepoRemoteUrl, RepoName)
|
||||
.Substring (2);
|
||||
Process.StartInfo.Arguments = "clone ";
|
||||
Process.StartInfo.Arguments +=
|
||||
SparkleHelpers.CombineMore (RepoRemoteUrl, RepoName).Substring (2);
|
||||
|
||||
Process.Start ();
|
||||
|
||||
// Move the folder to the SparkleShare folder when done cloning
|
||||
Process.Exited += delegate {
|
||||
Directory.Move (
|
||||
SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath,
|
||||
|
@ -137,10 +139,6 @@ namespace SparkleShare {
|
|||
RepoName)
|
||||
);
|
||||
|
||||
// Enable notifications by default
|
||||
File.Create (
|
||||
SparkleHelpers.CombineMore (SparklePaths.SparkleConfigPath,
|
||||
"sparkleshare.notify"));
|
||||
Destroy ();
|
||||
};
|
||||
|
||||
|
|
|
@ -138,6 +138,7 @@ namespace SparkleShare {
|
|||
// Create place to store configuration user's home folder
|
||||
string ConfigPath = SparklePaths.SparkleConfigPath;
|
||||
string AvatarPath = SparklePaths.SparkleAvatarPath;
|
||||
|
||||
if (!Directory.Exists (ConfigPath)) {
|
||||
|
||||
Directory.CreateDirectory (ConfigPath);
|
||||
|
@ -149,6 +150,15 @@ namespace SparkleShare {
|
|||
|
||||
}
|
||||
|
||||
string NotifySettingFile =
|
||||
SparkleHelpers.CombineMore (SparklePaths.SparkleConfigPath,
|
||||
"sparkleshare.notify");
|
||||
|
||||
// Enable notifications by default
|
||||
if (!File.Exists (NotifySettingFile))
|
||||
File.Create (NotifySettingFile);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue