mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 01:41:10 +00:00
Update buffer formatter help text, save its visibility in config
This commit is contained in:
6 files changed
+28
-2
No files matched your search
@@ -41,9 +41,17 @@ BufferFormatSpecifier::BufferFormatSpecifier(QWidget *parent)
|
||||
|
||||
BufferFormatSpecifier::~BufferFormatSpecifier()
|
||||
{
|
||||
if(m_Ctx)
|
||||
m_Ctx->Config().BufferFormatter_ShowHelp = ui->helpText->isVisible();
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void BufferFormatSpecifier::setContext(ICaptureContext *ctx)
|
||||
{
|
||||
m_Ctx = ctx;
|
||||
showHelp(m_Ctx->Config().BufferFormatter_ShowHelp);
|
||||
}
|
||||
|
||||
void BufferFormatSpecifier::toggleHelp()
|
||||
{
|
||||
ui->helpText->setVisible(!ui->helpText->isVisible());
|
||||
|
||||
Reference in new issue
Block a user