Skip to content
Snippets Groups Projects
Unverified Commit f174e761 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[feat] open help url

parent c17b5f6f
No related branches found
No related tags found
No related merge requests found
......@@ -164,20 +164,18 @@ ApplicationWindow {
MenuItem {
text: qsTr("Help...")
//onTriggered: ctxSystray.help()
onTriggered: backend.openURL(ctx.helpURL)
}
MenuItem {
text: qsTr("Donate...")
visible: true
onTriggered: {
donate.visible = true
}
onTriggered: { donate.visible = true }
}
MenuItem {
text: qsTr("About...")
//onTriggered: about.open()
//onTriggered: { about.visible = true }
}
MenuSeparator {}
......
......@@ -53,6 +53,8 @@ func initializeContext(provider, appName string) {
ctx = &connectionCtx{
AppName: appName,
Provider: provider,
TosURL: config.TosURL,
HelpURL: config.HelpURL,
DonateURL: config.DonateURL,
AskForDonations: wantDonations(),
DonateDialog: false,
......
......@@ -29,6 +29,8 @@ var ctx *connectionCtx
type connectionCtx struct {
AppName string `json:"appName"`
Provider string `json:"provider"`
TosURL string `json:"tosURL"`
HelpURL string `json:"helpURL"`
AskForDonations bool `json:"askForDonations"`
DonateDialog bool `json:"donateDialog"`
DonateURL string `json:"donateURL"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment