mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-01 19:35:48 +00:00
Disable python debugging buttons if it's not supported
This commit is contained in:
@@ -298,7 +298,11 @@ void ExtensionManager::update_currentItem(RDTreeWidgetItem *item)
|
||||
ui->reload->setEnabled(true);
|
||||
ui->reload->setText(loaded ? tr("Reload") : tr("Load"));
|
||||
ui->output->setEnabled(loaded);
|
||||
ui->debug->setEnabled(loaded);
|
||||
ui->debug->setEnabled(loaded && PythonContext::IsDebuggingEnabled());
|
||||
ui->debug->setToolTip(QString());
|
||||
if(loaded && !PythonContext::IsDebuggingEnabled())
|
||||
ui->debug->setToolTip(
|
||||
tr("Debugging not supported - check documentation for setup instructions"));
|
||||
ui->alwaysLoad->setEnabled(loaded);
|
||||
|
||||
ui->alwaysLoad->setChecked(m_Ctx.Config().AlwaysLoad_Extensions.contains(e.package));
|
||||
|
||||
Reference in New Issue
Block a user