mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user