Make it compile again in Windows
This commit is contained in:
parent
8eedf5b148
commit
69829cb547
|
@ -71,7 +71,7 @@ namespace SparkleLib {
|
||||||
|
|
||||||
public override double Size {
|
public override double Size {
|
||||||
get {
|
get {
|
||||||
string file_path = Path.Combine (LocalPath, ".git", "repo_size");
|
string file_path = SparkleHelpers.CombineMore (LocalPath, ".git", "repo_size");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return double.Parse (File.ReadAllText (file_path));
|
return double.Parse (File.ReadAllText (file_path));
|
||||||
|
@ -85,7 +85,7 @@ namespace SparkleLib {
|
||||||
|
|
||||||
public override double HistorySize {
|
public override double HistorySize {
|
||||||
get {
|
get {
|
||||||
string file_path = Path.Combine (LocalPath, ".git", "repo_history_size");
|
string file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_history_size");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return double.Parse (File.ReadAllText (file_path));
|
return double.Parse (File.ReadAllText (file_path));
|
||||||
|
@ -105,8 +105,8 @@ namespace SparkleLib {
|
||||||
double history_size = CalculateSize (
|
double history_size = CalculateSize (
|
||||||
new DirectoryInfo (Path.Combine (LocalPath, ".git")));
|
new DirectoryInfo (Path.Combine (LocalPath, ".git")));
|
||||||
|
|
||||||
string size_file_path = Path.Combine (LocalPath, ".git", "repo_size");
|
string size_file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_size");
|
||||||
string history_size_file_path = Path.Combine (LocalPath, ".git", "repo_history_size");
|
string history_size_file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_history_size");
|
||||||
|
|
||||||
File.WriteAllText (size_file_path, size.ToString ());
|
File.WriteAllText (size_file_path, size.ToString ());
|
||||||
File.WriteAllText (history_size_file_path, history_size.ToString ());
|
File.WriteAllText (history_size_file_path, history_size.ToString ());
|
||||||
|
|
|
@ -67,6 +67,9 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\Git\SparkleFetcherGit.cs">
|
<Compile Include="..\Git\SparkleFetcherGit.cs">
|
||||||
<Link>SparkleFetcherGit.cs</Link>
|
<Link>SparkleFetcherGit.cs</Link>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="..\Git\SparkleGit.cs">
|
||||||
|
<Link>SparkleGit.cs</Link>
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="..\Git\SparkleRepoGit.cs">
|
<Compile Include="..\Git\SparkleRepoGit.cs">
|
||||||
|
|
|
@ -363,4 +363,4 @@ namespace SparkleShare {
|
||||||
SetProperty ("always-show-image", new GLib.Value (true));
|
SetProperty ("always-show-image", new GLib.Value (true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue