diff --git a/CustomWidgets/LibrarySelector/FolderBreadCrumbWidget.cs b/CustomWidgets/LibrarySelector/FolderBreadCrumbWidget.cs index 24991e9f7..206d5f474 100644 --- a/CustomWidgets/LibrarySelector/FolderBreadCrumbWidget.cs +++ b/CustomWidgets/LibrarySelector/FolderBreadCrumbWidget.cs @@ -43,7 +43,8 @@ namespace MatterHackers.MatterControl.CustomWidgets.LibrarySelector public class FolderBreadCrumbWidget : FlowLayoutWidget { private static TextImageButtonFactory navigationButtonFactory = new TextImageButtonFactory(); - Action SwitchToLibraryProvider; + + private Action SwitchToLibraryProvider; public FolderBreadCrumbWidget(Action SwitchToLibraryProvider, LibraryProvider currentLibraryProvider) { diff --git a/Library/LibraryRowItem.cs b/Library/LibraryRowItem.cs index c2929c207..69309c69a 100644 --- a/Library/LibraryRowItem.cs +++ b/Library/LibraryRowItem.cs @@ -40,6 +40,7 @@ namespace MatterHackers.MatterControl.PrintLibrary public abstract class LibraryRowItem : GuiWidget { public static readonly string LoadingPlaceholderToken = "!Placeholder_ItemToken!"; + public static readonly string LoadFailedPlaceholderToken = "!Placeholder_LoadFailedToken!"; public bool IsSelectedItem { diff --git a/Library/LibraryRowItemPart.cs b/Library/LibraryRowItemPart.cs index 5c73d97c0..9a1d0c8b0 100644 --- a/Library/LibraryRowItemPart.cs +++ b/Library/LibraryRowItemPart.cs @@ -71,9 +71,18 @@ namespace MatterHackers.MatterControl.PrintLibrary } this.ItemName = libraryProvider.GetPrintItemName(itemIndex); - if(this.ItemName == LibraryRowItem.LoadingPlaceholderToken) + if(this.ItemName == LibraryRowItem.LoadingPlaceholderToken + || this.ItemName == LibraryRowItem.LoadFailedPlaceholderToken) { - this.ItemName = "Retrieving Contents...".Localize(); + if(this.ItemName == LibraryRowItem.LoadingPlaceholderToken) + { + this.ItemName = "Retrieving Contents...".Localize(); + } + else + { + this.ItemName = "Error Loading Contents".Localize(); + } + this.IsViewHelperItem = true; this.EnableSlideInActions = false; } diff --git a/Library/Provider/LibraryProvider.cs b/Library/Provider/LibraryProvider.cs index d3a9f1fd7..db8425509 100644 --- a/Library/Provider/LibraryProvider.cs +++ b/Library/Provider/LibraryProvider.cs @@ -183,7 +183,7 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider public abstract void RemoveItem(int itemIndexToRemove); - // Base implmentation simply calls RemoveItem + // Base implementation simply calls RemoveItem public virtual void RemoveItems(int[] indexes) { // Remove items in reverse order