Made the wide screen panel be the thing that is recreated on ReloadAll.
This commit is contained in:
parent
c6582a6e28
commit
fab40e17a8
3 changed files with 3 additions and 6 deletions
|
|
@ -98,11 +98,7 @@ namespace MatterHackers.MatterControl
|
|||
UiThread.RunOnIdle((state) =>
|
||||
{
|
||||
// give the widget a chance to hear about the close before they are actually colsed.
|
||||
bool cancelClose;
|
||||
this.OnClosing(out cancelClose);
|
||||
|
||||
this.CloseAndRemoveAllChildren();
|
||||
AddElements();
|
||||
widescreenPanel.RecreateAllPanels();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
void RecreateAllPanels(object state = null)
|
||||
public void RecreateAllPanels(object state = null)
|
||||
{
|
||||
if (Width == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -346,6 +346,7 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
|
||||
WidescreenPanel.PreChangePannels.RegisterEvent(SaveCurrentlySelctedItemIndex, ref unregisterEvents);
|
||||
|
||||
selectedQueueItemIndex = Math.Min(selectedQueueItemIndex, QueueData.Instance.Count-1);
|
||||
SelectedIndex = selectedQueueItemIndex;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue