[controller] remove FIXME and redundant event
This commit is contained in:
parent
30f6460df9
commit
c1c63a9c7d
|
@ -93,12 +93,18 @@ namespace SparkleShare {
|
||||||
StatusIcon = new SparkleStatusIcon ();
|
StatusIcon = new SparkleStatusIcon ();
|
||||||
|
|
||||||
|
|
||||||
SparkleShare.Controller.NotificationRaised += delegate {
|
SparkleShare.Controller.NotificationRaised += delegate (string user_name, string user_email,
|
||||||
|
string message, string repository_path) {
|
||||||
|
|
||||||
InvokeOnMainThread (delegate {
|
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 ();
|
log.UpdateEventLog ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (SparkleShare.Controller.NotificationsEnabled) {
|
if (SparkleShare.Controller.NotificationsEnabled) {
|
||||||
|
|
||||||
|
|
|
@ -636,15 +636,11 @@ namespace SparkleShare {
|
||||||
private void PopulateRepositories ()
|
private void PopulateRepositories ()
|
||||||
{
|
{
|
||||||
|
|
||||||
// FIXME: Opening a log from the menu whilst populating crashes SparkleShare
|
|
||||||
Repositories = new List <SparkleRepo> ();
|
Repositories = new List <SparkleRepo> ();
|
||||||
|
|
||||||
foreach (string folder_path in Directory.GetDirectories (SparklePaths.SparklePath))
|
foreach (string folder_path in Directory.GetDirectories (SparklePaths.SparklePath))
|
||||||
AddRepository (folder_path);
|
AddRepository (folder_path);
|
||||||
|
|
||||||
if (FolderListChanged != null)
|
|
||||||
FolderListChanged ();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue