feat(desktop/profile): add link in advanced settings so log directory can be opened directly
Closes #3509.
This commit is contained in:
parent
2e9c5047bb
commit
6625ae38be
|
@ -15,6 +15,7 @@ import status/notifications/[os_notifications]
|
|||
import ../../app_service/[main]
|
||||
import qrcode/qrcode
|
||||
import ../utils/image_utils
|
||||
import ../../constants
|
||||
|
||||
logScope:
|
||||
topics = "profile-view"
|
||||
|
@ -226,3 +227,6 @@ QtObject:
|
|||
|
||||
self.appService.osNotificationService.showNotification(title, message,
|
||||
details, useOSNotifications)
|
||||
|
||||
proc logDir*(self: ProfileView): string {.slot.} =
|
||||
url_fromLocalFile(constants.LOGDIR)
|
||||
|
|
|
@ -49,6 +49,25 @@ ScrollView {
|
|||
}
|
||||
}
|
||||
|
||||
StyledText {
|
||||
//% "Application Logs"
|
||||
text: qsTr("Application Logs")
|
||||
font.pixelSize: 15
|
||||
font.underline: mouseArea.containsMouse
|
||||
color: Style.current.blue
|
||||
topPadding: 23
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
hoverEnabled: true
|
||||
onClicked: {
|
||||
Qt.openUrlExternally(profileModel.logDir())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id: spacer1
|
||||
height: Style.current.bigPadding
|
||||
|
|
Loading…
Reference in New Issue