add frontend for bug reporting (#104)

This commit is contained in:
2016-08-23 12:30:11 +03:00
parent e5b1102abf
commit 5b9984d950
3 changed files with 121 additions and 0 deletions

View File

@ -36,6 +36,9 @@ Item {
AWActions {
id: awActions
}
BugReport {
id: bugReport
}
property bool debug: awActions.isDebugEnabled()
property variant tooltipSettings: {
@ -141,6 +144,7 @@ Item {
plasmoid.setAction("requestKey", i18n("Request key"), "utilities-system-monitor")
plasmoid.setAction("showReadme", i18n("Show README"), "text-x-readme")
plasmoid.setAction("checkUpdates", i18n("Check updates"), "system-software-update")
plasmoid.setAction("reportBug", i18n("Report bug"), "tools-report-bug")
// init submodule
Plasmoid.userConfiguringChanged(false)
// connect data
@ -215,6 +219,13 @@ Item {
return awActions.showReadme()
}
function action_reportBug() {
if (debug) console.debug()
bugReport.reset()
bugReport.open()
}
function action_requestKey() {
if (debug) console.debug()