[controller] remove FIXME and redundant event

This commit is contained in:
Hylke Bons 2011-03-24 00:16:51 +00:00
parent 30f6460df9
commit c1c63a9c7d
2 changed files with 10 additions and 8 deletions

View file

@ -93,12 +93,18 @@ namespace SparkleShare {
StatusIcon = new SparkleStatusIcon ();
SparkleShare.Controller.NotificationRaised += delegate {
SparkleShare.Controller.NotificationRaised += delegate (string user_name, string user_email,
string message, string repository_path) {
InvokeOnMainThread (delegate {
foreach (SparkleLog log in SparkleUI.OpenLogs)
log.UpdateEventLog ();
foreach (SparkleLog log in OpenLogs) {
Console.WriteLine (log.LocalPath + " " +repository_path);
if (log.LocalPath.Equals (repository_path)) {
Console.WriteLine ("UPDATING " + repository_path);
log.UpdateEventLog ();
}
}
if (SparkleShare.Controller.NotificationsEnabled) {

View file

@ -635,16 +635,12 @@ namespace SparkleShare {
// folders in the SparkleShare folder
private void PopulateRepositories ()
{
// FIXME: Opening a log from the menu whilst populating crashes SparkleShare
Repositories = new List <SparkleRepo> ();
foreach (string folder_path in Directory.GetDirectories (SparklePaths.SparklePath))
AddRepository (folder_path);
if (FolderListChanged != null)
FolderListChanged ();
}