fix: Compatibility problem with nvenc on windows

* change default chat render to software on windows
This commit is contained in:
Petr Mironychev
2025-09-17 10:20:19 +02:00
parent 76309be0a6
commit 561661b476
4 changed files with 23 additions and 4 deletions

View File

@ -120,6 +120,9 @@ public:
Constants::QODE_ASSIST_GENERAL_OPTIONS_DISPLAY_CATEGORY,
":/resources/images/qoderassist-icon.png");
#endif
QQuickWindow::setSceneGraphBackend(
Settings::chatAssistantSettings().chatRenderer.stringValue());
loadTranslations();
Providers::registerProviders();
@ -202,12 +205,13 @@ public:
showChatViewAction.setText(Tr::tr("Show QodeAssist Chat"));
showChatViewAction.setIcon(QCODEASSIST_CHAT_ICON.icon());
showChatViewAction.addOnTriggered(this, [this] {
if (!m_chatView) {
m_chatView.reset(new Chat::ChatView());
}
if (!m_chatView->isVisible()) {
m_chatView->show();
}
m_chatView->raise();
m_chatView->requestActivate();
});
m_statusWidget->setChatButtonAction(showChatViewAction.contextAction());
@ -237,7 +241,7 @@ public:
}
}
void extensionsInitialized() final { m_chatView.reset(new Chat::ChatView()); }
void extensionsInitialized() final {}
void restartClient()
{