Commit 68ef6f0d authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

handle debugpackageinstaller signals

- reload the bt on successful installation
- show a passive error notification if things went wrong (this uses the
same string as is already present in backtracewidget.cpp)

BUG: 458435
parent 86637b15
Pipeline #228376 passed with stage
in 2 minutes and 9 seconds
......@@ -45,7 +45,10 @@ Kirigami.ScrollablePage {
tooltip: xi18nc("@info:tooltip",
`Use this button to reload the crash information (backtrace). This is useful when you have
installed the proper debug symbol packages and you want to obtain a better backtrace.`)
onTriggered: BacktraceGenerator.start()
onTriggered: {
traceArea.text = ""
BacktraceGenerator.start()
}
},
Kirigami.Action {
......@@ -76,6 +79,8 @@ installed the proper debug symbol packages and you want to obtain a better backt
ColumnLayout {
DebugPackageInstaller { // not in global scope because it messes up scrollbars
id: debugPackageInstaller
onPackagesInstalled: reloadAction.trigger()
onError: appWindow.showPassiveNotification(i18nc("@title:window", "Error during the installation of debug symbols"), "long")
}
RowLayout {
......
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