MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / relocateToWindow

Method relocateToWindow

ChatView/ChatRootView.cpp:949–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949void ChatRootView::relocateToWindow()
950{
951 handOffSession();
952 triggerOpenChatCommand(Constants::QODE_ASSIST_OPEN_CHAT_WINDOW_ACTION);
953 clearMessages();
954 clearAttachmentFiles();
955 emit closeHostRequested();
956
957 // Closing the source split raises the main window; re-raise the chat window once that
958 // queued teardown has run. The registry outlives this view, which the split close deletes.
959 if (auto registry = sessionFileRegistry()) {
960 QMetaObject::invokeMethod(
961 registry,
962 [] {
963 if (auto command = Core::ActionManager::command(
964 Constants::QODE_ASSIST_OPEN_CHAT_WINDOW_ACTION)) {
965 if (auto action = command->action())
966 action->trigger();
967 }
968 },
969 Qt::QueuedConnection);
970 }
971}
972
973void ChatRootView::updateInputTokensCount()
974{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected