From 364eeb2ce54434f4b8a690356c1dd401f605f2a4 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 28 Apr 2023 22:07:37 -0400 Subject: [PATCH] Don't delete symlink unless we're uninstalling. --- cmake/installerscript.qs | 4 +++- qml/ModelDownloaderDialog.qml | 4 ++++ qml/SettingsDialog.qml | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cmake/installerscript.qs b/cmake/installerscript.qs index 25ff4c81..11027049 100644 --- a/cmake/installerscript.qs +++ b/cmake/installerscript.qs @@ -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"); + } } } diff --git a/qml/ModelDownloaderDialog.qml b/qml/ModelDownloaderDialog.qml index c73c007b..93187e33 100644 --- a/qml/ModelDownloaderDialog.qml +++ b/qml/ModelDownloaderDialog.qml @@ -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") diff --git a/qml/SettingsDialog.qml b/qml/SettingsDialog.qml index 619dea91..556a9d09 100644 --- a/qml/SettingsDialog.qml +++ b/qml/SettingsDialog.qml @@ -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