statusicon: rely on main controller for updating the recent events item. force loaded to true after project add fixes. #1100

This commit is contained in:
Hylke Bons 2012-12-11 21:12:59 +01:00
parent bc1c5d21b2
commit 4248ab1961
2 changed files with 3 additions and 1 deletions

View file

@ -681,6 +681,8 @@ namespace SparkleShare {
this.config.AddFolder (target_folder_name, this.fetcher.Identifier,
this.fetcher.RemoteUrl.ToString (), backend);
RepositoriesLoaded = true;
FolderFetched (this.fetcher.RemoteUrl.ToString (), this.fetcher.Warnings.ToArray ());
AddRepository (target_folder_path);

View file

@ -96,7 +96,7 @@ namespace SparkleShare {
public bool RecentEventsItemEnabled {
get {
return (Folders.Length > 0);
return (Program.Controller.Repositories.Length > 0);
}
}