mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-24 22:42:27 +00:00
Clean up the context links a bit.
This commit is contained in:
parent
a9c2f47303
commit
50c5b82e57
@ -603,7 +603,7 @@ Window {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
propagateComposedEvents: true
|
||||
onClicked: {
|
||||
onClicked: function(mouse) {
|
||||
var clickedPos = myTextArea.positionAt(mouse.x, mouse.y);
|
||||
var link = responseText.getLinkAtPosition(clickedPos);
|
||||
if (!link.startsWith("context://"))
|
||||
@ -633,14 +633,6 @@ Window {
|
||||
leftPadding: 70
|
||||
rightPadding: 100
|
||||
|
||||
onLinkActivated: function (link) {
|
||||
if (!link.startsWith("context://"))
|
||||
return
|
||||
var integer = parseInt(link.split("://")[1]);
|
||||
referenceContextDialog.text = referencesContext[integer - 1];
|
||||
referenceContextDialog.open();
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 60
|
||||
|
Loading…
Reference in New Issue
Block a user