Save as widget is working correctly.
This commit is contained in:
parent
6e7e0a15ae
commit
10fa7f4f61
2 changed files with 11 additions and 22 deletions
|
|
@ -60,9 +60,12 @@ namespace MatterHackers.MatterControl.CustomWidgets.LibrarySelector
|
|||
|
||||
private bool settingLocalBounds = false;
|
||||
|
||||
public event Action<LibraryProvider> ChangedCurrentLibraryProvider;
|
||||
|
||||
public void SetCurrentLibraryProvider(LibraryProvider libraryProvider)
|
||||
{
|
||||
this.currentLibraryProvider = libraryProvider;
|
||||
this.CurrentLibraryProvider = libraryProvider;
|
||||
UiThread.RunOnIdle(RebuildView);
|
||||
}
|
||||
|
||||
public LibrarySelectorWidget()
|
||||
|
|
@ -123,6 +126,11 @@ namespace MatterHackers.MatterControl.CustomWidgets.LibrarySelector
|
|||
}
|
||||
|
||||
currentLibraryProvider = value;
|
||||
|
||||
if (ChangedCurrentLibraryProvider != null)
|
||||
{
|
||||
ChangedCurrentLibraryProvider(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue