mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-10-06 12:05:35 -04:00
fix: Compatibility problem with nvenc on windows
* change default chat render to software on windows
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user