mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-07 13:39:11 -04:00
fix: Found and fix review mistakes
This commit is contained in:
@@ -317,7 +317,7 @@ ChatRootView {
|
||||
onResetChatToMessage: function(idx) {
|
||||
messageInput.text = model.content
|
||||
messageInput.cursorPosition = model.content.length
|
||||
root.chatModel.resetModelTo(idx)
|
||||
root.resetChatTo(idx)
|
||||
}
|
||||
|
||||
onOpenFileRequested: function(filePath) {
|
||||
@@ -659,6 +659,10 @@ ChatRootView {
|
||||
}
|
||||
|
||||
function sendChatMessage() {
|
||||
if (root.isCompressing)
|
||||
return
|
||||
if (messageInput.text.trim() === "" && root.attachmentFiles.length === 0)
|
||||
return
|
||||
root.hasActiveError = false
|
||||
root.sendMessage(fileMentionPopup.expandMentions(messageInput.text))
|
||||
messageInput.text = ""
|
||||
|
||||
@@ -185,7 +185,7 @@ Rectangle {
|
||||
id: sendButtonId
|
||||
|
||||
anchors.fill: parent
|
||||
enabled: root.isProcessing || root.canSend
|
||||
enabled: root.isProcessing || (root.canSend && !root.isCompressing)
|
||||
leftPadding: root.isProcessing ? 22 : 4
|
||||
|
||||
icon {
|
||||
|
||||
Reference in New Issue
Block a user