Skip to content

Commit 15d7145

Browse files
lebedeviv1988Ivan Lebedev
andauthored
fix: Open Qt Creator settings delayed from ChatRootView (#332)
fix: Opens settings delayed Co-authored-by: Ivan Lebedev <ilebedev1988@gmail.com>
1 parent 9a2ba08 commit 15d7145

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ChatView/ChatRootView.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,10 @@ void ChatRootView::openRulesFolder()
750750

751751
void ChatRootView::openSettings()
752752
{
753-
Settings::showSettings(Constants::QODE_ASSIST_CHAT_ASSISTANT_SETTINGS_PAGE_ID);
753+
QMetaObject::invokeMethod(
754+
this,
755+
[]() { Settings::showSettings(Constants::QODE_ASSIST_CHAT_ASSISTANT_SETTINGS_PAGE_ID); },
756+
Qt::QueuedConnection);
754757
}
755758

756759
void ChatRootView::openFileInEditor(const QString &filePath)

0 commit comments

Comments
 (0)