Debugger: Delay restoration until Devices are restored

Change-Id: Ib3f63e84959518cd629cb98e3e348aea50979927
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-09-22 15:24:52 +02:00
parent 0f4ba36008
commit e9045c4962
4 changed files with 21 additions and 1 deletions

View File

@@ -2053,6 +2053,10 @@ void DebuggerPluginPrivate::remoteCommand(const QStringList &options)
void DebuggerPluginPrivate::extensionsInitialized()
{
QTimer::singleShot(0, this, [this]{
m_debuggerItemManager.extensionsInitialized();
});
// If the CppEditor or QmlJS editor plugin is there, we want to add something to
// the editor context menu.
for (Id menuId : { CppEditor::Constants::M_CONTEXT, QmlJSEditor::Constants::M_CONTEXT }) {