windows: fix for the .sparkleshare file sometimes not being hidden
This commit is contained in:
parent
315f5fc185
commit
9601506d31
|
@ -336,10 +336,6 @@ namespace SparkleLib.Git {
|
||||||
|
|
||||||
if (git.ExitCode == 0) {
|
if (git.ExitCode == 0) {
|
||||||
Rebase ();
|
Rebase ();
|
||||||
|
|
||||||
string identifier_file_path = Path.Combine (LocalPath, ".sparkleshare");
|
|
||||||
File.SetAttributes (identifier_file_path, FileAttributes.Hidden);
|
|
||||||
|
|
||||||
ClearCache ();
|
ClearCache ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -155,6 +155,9 @@ namespace SparkleLib {
|
||||||
this.identifier = Identifier;
|
this.identifier = Identifier;
|
||||||
ChangeSets = GetChangeSets ();
|
ChangeSets = GetChangeSets ();
|
||||||
|
|
||||||
|
string identifier_file_path = Path.Combine (LocalPath, ".sparkleshare");
|
||||||
|
File.SetAttributes (identifier_file_path, FileAttributes.Hidden);
|
||||||
|
|
||||||
SyncStatusChanged += delegate (SyncStatus status) {
|
SyncStatusChanged += delegate (SyncStatus status) {
|
||||||
Status = status;
|
Status = status;
|
||||||
};
|
};
|
||||||
|
@ -362,6 +365,9 @@ namespace SparkleLib {
|
||||||
SparkleLogger.LogInfo ("SyncDown", Name + " | Done");
|
SparkleLogger.LogInfo ("SyncDown", Name + " | Done");
|
||||||
Error = ErrorStatus.None;
|
Error = ErrorStatus.None;
|
||||||
|
|
||||||
|
string identifier_file_path = Path.Combine (LocalPath, ".sparkleshare");
|
||||||
|
File.SetAttributes (identifier_file_path, FileAttributes.Hidden);
|
||||||
|
|
||||||
ChangeSets = GetChangeSets ();
|
ChangeSets = GetChangeSets ();
|
||||||
|
|
||||||
if (!pre_sync_revision.Equals (CurrentRevision) && ChangeSets != null && ChangeSets.Count > 0) {
|
if (!pre_sync_revision.Equals (CurrentRevision) && ChangeSets != null && ChangeSets.Count > 0) {
|
||||||
|
|
Loading…
Reference in a new issue