[statusicon] Fix bug where the size of a temporary directory is checked that may not exist anymore
This commit is contained in:
parent
e52b5e930e
commit
af67adf797
|
@ -311,6 +311,8 @@ namespace SparkleLib {
|
|||
public void Rebase ()
|
||||
{
|
||||
|
||||
Add (); // TODO: Experiment for the "You have unstaged changes" bug
|
||||
|
||||
Watcher.EnableRaisingEvents = false;
|
||||
|
||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Rebasing changes...");
|
||||
|
|
|
@ -131,9 +131,10 @@ namespace SparkleShare {
|
|||
|
||||
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)
|
||||
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