Removal of menu IDs. WARNING: context menus are currently broken

This commit is contained in:
Lea Anthony
2021-01-13 21:14:44 +11:00
parent 3045ec107f
commit a86fbbb440
17 changed files with 103 additions and 940 deletions

View File

@@ -7,13 +7,8 @@ package ffenestri
#include "ffenestri.h"
#include "ffenestri_darwin.h"
*/
import "C"
import (
"github.com/wailsapp/wails/v2/pkg/options"
)
func (a *Application) processPlatformSettings() error {
@@ -83,14 +78,14 @@ func (a *Application) processPlatformSettings() error {
}
// Process context menus
contextMenus := options.GetContextMenus(a.config)
if contextMenus != nil {
contextMenusJSON, err := processContextMenus(contextMenus)
if err != nil {
return err
}
C.SetContextMenus(a.app, a.string2CString(contextMenusJSON))
}
//contextMenus := options.GetContextMenus(a.config)
//if contextMenus != nil {
// contextMenusJSON, err := processContextMenus(contextMenus)
// if err != nil {
// return err
// }
// C.SetContextMenus(a.app, a.string2CString(contextMenusJSON))
//}
return nil
}