Commit 62dd4957 authored by Jakob Rech's avatar Jakob Rech Committed by Aleix Pol Gonzalez
Browse files

Do not offer to open Discover if it's not installed

Currently when the User clicks "Find more in Discover" without Discover being installed, it just silently fails. This change removes the offer to "Find more".
parent 6976bbca
Pipeline #231371 passed with stage
in 1 minute and 9 seconds
......@@ -8,6 +8,7 @@
import QtQuick 2.15
import Qt.labs.platform 1.1
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.12
import org.kde.kirigami 2.19 as Kirigami
......@@ -192,7 +193,7 @@ PWD.SystemDialog
// links are hovered, which is needed for us to be able to use the correct
// cursor shape for it.
TextEdit {
visible: !
visible: ! && StandardPaths.findExecutable("plasma-discover") != ""
Layout.fillWidth: true
text: xi18nc("@info", "Don't see the right app? Find more in <link>Discover</link>.")
textFormat: Text.RichText
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment