Rename LoadContainer to SetActiveContainer to clarify behavior
This commit is contained in:
parent
51d91796c2
commit
2c0f82dfd0
2 changed files with 5 additions and 5 deletions
|
|
@ -82,7 +82,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
{
|
||||
if (listView.ActiveContainer.Parent != null)
|
||||
{
|
||||
UiThread.RunOnIdle(() => listView.LoadContainer(listView.ActiveContainer.Parent));
|
||||
UiThread.RunOnIdle(() => listView.SetActiveContainer(listView.ActiveContainer.Parent));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
gotoProviderButton.Margin = new BorderDouble(right: 5);
|
||||
gotoProviderButton.Click += (s, e) =>
|
||||
{
|
||||
UiThread.RunOnIdle(() => listView.LoadContainer(container));
|
||||
UiThread.RunOnIdle(() => listView.SetActiveContainer(container));
|
||||
};
|
||||
this.AddChild(gotoProviderButton);
|
||||
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
if (container != null)
|
||||
{
|
||||
container.Parent = ActiveContainer;
|
||||
LoadContainer(container);
|
||||
SetActiveContainer(container);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -369,9 +369,9 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
}));
|
||||
}
|
||||
|
||||
public void LoadContainer(ILibraryContainer temp)
|
||||
public void SetActiveContainer(ILibraryContainer container)
|
||||
{
|
||||
this.LibraryContext.ActiveContainer = temp;
|
||||
this.LibraryContext.ActiveContainer = container;
|
||||
}
|
||||
|
||||
public ObservableCollection<ListViewItem> SelectedItems { get; } = new ObservableCollection<ListViewItem>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue