Made the local sqlite library update better.
This commit is contained in:
parent
92ce923a18
commit
c15404c43e
6 changed files with 13 additions and 90 deletions
|
|
@ -125,7 +125,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
List<ProviderLocatorNode> currentDisplayedCollection = LibraryProviderSQLite.Instance.GetProviderLocator();
|
||||
if (currentDisplayedCollection.Count > 0 && currentDisplayedCollection[1].Key == LibraryProviderSQLite.StaticProviderKey)
|
||||
{
|
||||
OnItemAdded(new IndexArgs(indexToInsert));
|
||||
//OnItemAdded(new IndexArgs(indexToInsert));
|
||||
}
|
||||
item.PrintItem.PrintItemCollectionID = RootLibraryCollection.Id;
|
||||
item.PrintItem.Commit();
|
||||
|
|
@ -149,8 +149,6 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
|
||||
// and remove it from the data base
|
||||
printItemWrapper.Delete();
|
||||
|
||||
OnItemRemoved(new IndexArgs(index));
|
||||
}
|
||||
|
||||
public PrintItemWrapper GetPrintItemWrapper(int index)
|
||||
|
|
@ -259,16 +257,6 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
LibraryProvider.OnDataReloaded(e);
|
||||
}
|
||||
|
||||
public void OnItemAdded(EventArgs e)
|
||||
{
|
||||
LibraryProvider.OnItemAdded(e);
|
||||
}
|
||||
|
||||
public void OnItemRemoved(EventArgs e)
|
||||
{
|
||||
LibraryProvider.OnItemRemoved(e);
|
||||
}
|
||||
|
||||
public void SaveLibraryItems()
|
||||
{
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue