mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-25 23:13:06 +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
|
id: mouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
propagateComposedEvents: true
|
propagateComposedEvents: true
|
||||||
onClicked: {
|
onClicked: function(mouse) {
|
||||||
var clickedPos = myTextArea.positionAt(mouse.x, mouse.y);
|
var clickedPos = myTextArea.positionAt(mouse.x, mouse.y);
|
||||||
var link = responseText.getLinkAtPosition(clickedPos);
|
var link = responseText.getLinkAtPosition(clickedPos);
|
||||||
if (!link.startsWith("context://"))
|
if (!link.startsWith("context://"))
|
||||||
@ -633,14 +633,6 @@ Window {
|
|||||||
leftPadding: 70
|
leftPadding: 70
|
||||||
rightPadding: 100
|
rightPadding: 100
|
||||||
|
|
||||||
onLinkActivated: function (link) {
|
|
||||||
if (!link.startsWith("context://"))
|
|
||||||
return
|
|
||||||
var integer = parseInt(link.split("://")[1]);
|
|
||||||
referenceContextDialog.text = referencesContext[integer - 1];
|
|
||||||
referenceContextDialog.open();
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 60
|
anchors.leftMargin: 60
|
||||||
|
Loading…
Reference in New Issue
Block a user