Toggle LibraryProvider availability on authentication status

- Add Visible property to LibraryProviders
 - Filter LibraryProviders based on .Visible
 - Add authentication status to ChangeCloudSyncStatus calls
This commit is contained in:
John Lewin 2015-07-12 19:02:42 -07:00
parent e196e76d29
commit 23186bc68d
6 changed files with 66 additions and 11 deletions

View file

@ -78,6 +78,11 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
GetFilesAndCollectionsInCurrentDirectory();
}
public override bool Visible
{
get { return true; }
}
public override void Dispose()
{
directoryWatcher.EnableRaisingEvents = false;