Support context menu data

Support StartHidden
This commit is contained in:
Lea Anthony
2020-12-18 15:50:25 +11:00
parent 34ac62e4ac
commit a8995c5377
23 changed files with 773 additions and 247 deletions

View File

@@ -21,6 +21,7 @@ extern void SetContextMenus(void *, const char *);
import "C"
import (
"encoding/json"
"fmt"
"github.com/wailsapp/wails/v2/pkg/options"
)
@@ -116,6 +117,7 @@ func (a *Application) processPlatformSettings() error {
contextMenus := options.GetContextMenus(a.config)
if contextMenus != nil {
contextMenusJSON, err := json.Marshal(contextMenus)
fmt.Printf("\n\nCONTEXT MENUS:\n %+v\n\n", string(contextMenusJSON))
if err != nil {
return err
}