diff options
| author | xiphon <xiphon@protonmail.com> | 2019-12-10 00:42:48 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-12-12 00:10:22 +0000 |
| commit | ba24fd79bb50ff82f0fd94a5c0bd06f2130f3bd7 (patch) | |
| tree | 5c400e055ae67c94df1a81d53338665514d35ad7 /pages | |
| parent | 46227bdad08e191d54e49813ee2f4c0e3c226f95 (diff) | |
| download | monzero-gui-ba24fd79bb50ff82f0fd94a5c0bd06f2130f3bd7.tar.gz monzero-gui-ba24fd79bb50ff82f0fd94a5c0bd06f2130f3bd7.tar.xz monzero-gui-ba24fd79bb50ff82f0fd94a5c0bd06f2130f3bd7.zip | |
SettingsInfo: open containing folder on wallet log path click
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/settings/SettingsInfo.qml | 33 |
1 files changed, 26 insertions, 7 deletions
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: "\ + <style type='text/css'>\ + a {cursor:pointer;text-decoration: none; color: #FF6C3C}\ + </style>\ + <a href='#'>%1</a>".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: "\ + <style type='text/css'>\ + a {cursor:pointer;text-decoration: none; color: #FF6C3C}\ + </style>\ + <a href='#'>%1</a>".arg(walletLogPath) + textFormat: Text.RichText + onLinkActivated: oshelper.openContainingFolder(walletLogPath) + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.NoButton + cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor + } } Rectangle { |
