From ba24fd79bb50ff82f0fd94a5c0bd06f2130f3bd7 Mon Sep 17 00:00:00 2001 From: xiphon Date: Tue, 10 Dec 2019 00:42:48 +0000 Subject: SettingsInfo: open containing folder on wallet log path click --- pages/settings/SettingsInfo.qml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'pages') diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index c7ca7dc0..3d5f779b 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -132,14 +132,21 @@ Rectangle { MoneroComponents.TextBlock { Layout.fillWidth: true - Layout.maximumWidth: 360 color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 - text: { - var wallet_path = walletPath(); - if(isIOS) - wallet_path = moneroAccountsDir + wallet_path; - return wallet_path; + property string walletPath: (isIOS ? moneroAccountsDir : "") + appWindow.walletPath() + text: "\ + \ + %1".arg(walletPath) + textFormat: Text.RichText + onLinkActivated: oshelper.openContainingFolder(walletPath) + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.NoButton + cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor } } @@ -262,7 +269,19 @@ Rectangle { Layout.fillWidth: true color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 - text: walletLogPath + text: "\ + \ + %1".arg(walletLogPath) + textFormat: Text.RichText + onLinkActivated: oshelper.openContainingFolder(walletLogPath) + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.NoButton + cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor + } } Rectangle { -- cgit v1.2.3