Remove redundant code
This commit is contained in:
parent
e5584ac618
commit
a97319aab6
2 changed files with 4 additions and 14 deletions
|
|
@ -162,6 +162,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.PlusTab
|
|||
// Select the 25 most recent files and project onto FileSystemItems
|
||||
var recentFiles = new DirectoryInfo(ApplicationDataStorage.Instance.PlatingDirectory).GetFiles("*.mcx").OrderByDescending(f => f.LastWriteTime);
|
||||
|
||||
|
||||
// HACK: Creating a listview just to generate part thumbnails is invalid. Rework thumbnail generation so we have a solution for this case
|
||||
var listView = new ListView(ApplicationController.Instance.Library, theme);
|
||||
|
||||
var emptyPlateButton = new ImageWidget(AggContext.StaticData.LoadIcon("empty-workspace.png", 70, 70))
|
||||
|
|
|
|||
|
|
@ -66,21 +66,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.PlusTab
|
|||
|
||||
var lastProfileID = ProfileManager.Instance.LastProfileID;
|
||||
var lastProfile = ProfileManager.Instance[lastProfileID];
|
||||
if (lastProfile != null)
|
||||
{
|
||||
topToBottom.AddChild(
|
||||
new PrinterBar(partPreviewContent, lastProfile, theme));
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: implement panel for case of having no printer selected
|
||||
//var explorerBar = new ExplorerBar("testing", theme);
|
||||
//topToBottom.AddChild(explorerBar);
|
||||
|
||||
// for now just show
|
||||
topToBottom.AddChild(
|
||||
new PrinterBar(partPreviewContent, lastProfile, theme));
|
||||
}
|
||||
topToBottom.AddChild(
|
||||
new PrinterBar(partPreviewContent, lastProfile, theme));
|
||||
|
||||
topToBottom.AddChild(new PartsBar(partPreviewContent, theme)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue