Axivion: Fix filter help button enabled state

Explicitly reset project info when switching dashboards and
update the toolbar.
Drive by change of silencing another occurrence of running
into 'NetworkError () 301'.

Change-Id: I9eb142a02e7ccccb1a38e2f6fb6c8b9b4e1cb299
Reviewed-by: Daniel Hofmann <daniel.hofmann@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2024-11-12 15:23:26 +01:00
parent 4f56f64cbf
commit 11c043f6b3

View File

@@ -1013,7 +1013,7 @@ void AxivionPluginPrivate::enableInlineIssues(bool enable)
return;
m_inlineIssuesEnabled = enable;
if (enable)
if (enable && m_dashboardServerId.isValid())
handleOpenedDocs();
else
clearAllMarks();
@@ -1087,6 +1087,8 @@ void switchActiveDashboardId(const Id &toDashboardId)
dd->m_serverAccess = ServerAccess::Unknown;
dd->m_apiToken.reset();
dd->m_dashboardInfo.reset();
dd->m_currentProjectInfo.reset();
updatePerspectiveToolbar();
}
const std::optional<DashboardInfo> currentDashboardInfo()