From 7b3e1be030c223e171ca8eba40aa77b61672a856 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sat, 24 Feb 2018 11:03:56 +0000 Subject: [PATCH] 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. --- qrenderdoc/Windows/Dialogs/LiveCapture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qrenderdoc/Windows/Dialogs/LiveCapture.cpp b/qrenderdoc/Windows/Dialogs/LiveCapture.cpp index e2bef2f09..74eb724a8 100644 --- a/qrenderdoc/Windows/Dialogs/LiveCapture.cpp +++ b/qrenderdoc/Windows/Dialogs/LiveCapture.cpp @@ -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; }