tmpcommit
This commit is contained in:
parent
83f6ce9f96
commit
63cc942411
31
SparkleLib/SparkleListener.cs
Normal file
31
SparkleLib/SparkleListener.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
// SparkleShare, an instant update workflow to Git.
|
||||
// Copyright (C) 2010 Hylke Bons <hylkebons@gmail.com>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using Meebey.SmartIrc4net;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SparkleLib {
|
||||
|
||||
public class SparkleListener
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -74,8 +74,8 @@ namespace SparkleLib {
|
|||
public SparkleRepo (string path)
|
||||
{
|
||||
|
||||
if (!Directory.Exists (path))
|
||||
Directory.CreateDirectory (path);
|
||||
SparkleListener listener = new SparkleListener ();
|
||||
|
||||
|
||||
LocalPath = path;
|
||||
Name = Path.GetFileName (LocalPath);
|
||||
|
|
|
@ -416,8 +416,14 @@ namespace SparkleShare {
|
|||
|
||||
Repositories.Add (repo);
|
||||
|
||||
if (StatusIcon != null)
|
||||
Application.Invoke (delegate { StatusIcon.CreateMenu (); });
|
||||
if (StatusIcon != null) {
|
||||
|
||||
Application.Invoke (delegate {
|
||||
StatusIcon.CreateMenu ();
|
||||
StatusIcon.ShowState ();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -441,8 +447,14 @@ namespace SparkleShare {
|
|||
|
||||
}
|
||||
|
||||
if (StatusIcon != null)
|
||||
Application.Invoke (delegate { StatusIcon.CreateMenu (); });
|
||||
if (StatusIcon != null) {
|
||||
|
||||
Application.Invoke (delegate {
|
||||
StatusIcon.CreateMenu ();
|
||||
StatusIcon.ShowState ();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -457,7 +469,8 @@ namespace SparkleShare {
|
|||
foreach (string folder_path in Directory.GetDirectories (SparklePaths.SparklePath))
|
||||
AddRepository (folder_path);
|
||||
|
||||
StatusIcon.ShowState ();
|
||||
if (StatusIcon != null)
|
||||
StatusIcon.ShowState ();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue