When auto-opening a single capture, try to raise the texture viewer

* This gives a better 'first impression' when opening a capture than
  falling back to the last panel that is the launch executable panel
  in 95% of cases.
This commit is contained in:
baldurk
2018-02-24 11:03:56 +00:00
parent f3fdf79d8a
commit 7b3e1be030
@@ -1031,6 +1031,10 @@ void LiveCapture::connectionClosed()
// then don't close just yet.
if(ui->captures->count() == 1 || m_Children.count() == 0)
{
// raise the texture viewer if it exists, instead of falling back to most likely the capture
// executable dialog which is not useful.
if(m_Ctx.HasTextureViewer())
m_Ctx.ShowTextureViewer();
selfClose();
return;
}