[controller] remove FIXME and redundant event
This commit is contained in:
parent
b04eae3b38
commit
05b6f610d9
|
@ -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)
|
||||
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) {
|
||||
|
||||
|
|
|
@ -636,15 +636,11 @@ namespace SparkleShare {
|
|||
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 ();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue