[statusicon] Fix bug where the size of a temporary directory is checked that may not exist anymore
This commit is contained in:
parent
bcafa7c94f
commit
eea38eb0f0
|
@ -311,6 +311,8 @@ namespace SparkleLib {
|
||||||
public void Rebase ()
|
public void Rebase ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Add (); // TODO: Experiment for the "You have unstaged changes" bug
|
||||||
|
|
||||||
Watcher.EnableRaisingEvents = false;
|
Watcher.EnableRaisingEvents = false;
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Rebasing changes...");
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Rebasing changes...");
|
||||||
|
|
|
@ -131,9 +131,10 @@ namespace SparkleShare {
|
||||||
|
|
||||||
double size = 0;
|
double size = 0;
|
||||||
|
|
||||||
FileInfo [] files = parent.GetFiles();
|
if (!parent.Name.Equals ("rebase-apply"))
|
||||||
|
return 0;
|
||||||
|
|
||||||
foreach (FileInfo file in files) {
|
foreach (FileInfo file in parent.GetFiles()) {
|
||||||
|
|
||||||
if (!file.Exists)
|
if (!file.Exists)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
6
data/sparkleshare.invitation
Normal file
6
data/sparkleshare.invitation
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<sparkleshare_invitation>
|
||||||
|
<server>git.gnome.org</server>
|
||||||
|
<repository>gnome-design</repository>
|
||||||
|
<key>a22bc6f4b9ffe8e5acd4be0838d41aa10a1187dd</key>
|
||||||
|
</sparkleshare_invitation>
|
Loading…
Reference in a new issue