mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-04 21:05:44 +00:00
Improve the workflow for extensions that fail on import
This commit is contained in:
@@ -248,7 +248,7 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai
|
||||
QObject::connect(extensionReload, &RDToolButton::clicked, [this]() {
|
||||
rdcarray<ExtensionMetadata> exts = m_Ctx.Extensions().GetInstalledExtensions();
|
||||
for(const ExtensionMetadata &m : exts)
|
||||
if(m.hasChanges)
|
||||
if(m.hasChanges || m.failedLoad)
|
||||
m_Ctx.Extensions().LoadExtension(m.package);
|
||||
});
|
||||
QObject::connect(PythonContext::GetExtensionContext(), &PythonContext::extensionLoaded, this,
|
||||
@@ -1358,6 +1358,15 @@ void MainWindow::PythonStatusUpdate()
|
||||
break;
|
||||
}
|
||||
}
|
||||
for(const ExtensionMetadata &m : m_Ctx.Extensions().GetInstalledExtensions())
|
||||
{
|
||||
if(m.failedLoad)
|
||||
{
|
||||
text += tr(" (some failed to load)");
|
||||
reloadVisible = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
extensionReload->setVisible(reloadVisible);
|
||||
|
||||
if(PythonContext::IsDebuggerConnected())
|
||||
|
||||
Reference in New Issue
Block a user