Don't delete symlink unless we're uninstalling.

pull/520/head
Adam Treat 1 year ago
parent bba50d1aec
commit 364eeb2ce5

@ -60,6 +60,8 @@ Component.prototype.createOperationsForArchive = function(archive)
var symlinkPath = targetDirectory + "/../GPT4All.app";
// Remove the symlink during uninstallation
component.addOperation("Delete", symlinkPath, "UNDOEXECUTE");
if (installer.isUninstaller()) {
component.addOperation("Execute", "rm", "-f", symlinkPath, "UNDOEXECUTE");
}
}
}

@ -349,6 +349,10 @@ Dialog {
Accessible.role: Accessible.ToolTip
Accessible.name: modelPathDisplayLabel.text
Accessible.description: ToolTip.text
background: Rectangle {
color: theme.backgroundLighter
radius: 10
}
}
Button {
text: qsTr("Browse")

@ -565,6 +565,10 @@ The prompt below is a question to answer, a task to complete, or a conversation
Accessible.role: Accessible.ToolTip
Accessible.name: modelPathDisplayLabel.text
Accessible.description: ToolTip.text
background: Rectangle {
color: theme.backgroundLighter
radius: 10
}
}
Button {
Layout.row: 1

Loading…
Cancel
Save