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:
parent
bc1c5d21b2
commit
4248ab1961
|
@ -681,6 +681,8 @@ namespace SparkleShare {
|
||||||
this.config.AddFolder (target_folder_name, this.fetcher.Identifier,
|
this.config.AddFolder (target_folder_name, this.fetcher.Identifier,
|
||||||
this.fetcher.RemoteUrl.ToString (), backend);
|
this.fetcher.RemoteUrl.ToString (), backend);
|
||||||
|
|
||||||
|
RepositoriesLoaded = true;
|
||||||
|
|
||||||
FolderFetched (this.fetcher.RemoteUrl.ToString (), this.fetcher.Warnings.ToArray ());
|
FolderFetched (this.fetcher.RemoteUrl.ToString (), this.fetcher.Warnings.ToArray ());
|
||||||
|
|
||||||
AddRepository (target_folder_path);
|
AddRepository (target_folder_path);
|
||||||
|
|
|
@ -96,7 +96,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public bool RecentEventsItemEnabled {
|
public bool RecentEventsItemEnabled {
|
||||||
get {
|
get {
|
||||||
return (Folders.Length > 0);
|
return (Program.Controller.Repositories.Length > 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue