plugin integration main menu added

This commit is contained in:
BPanther
2018-09-03 22:43:52 +02:00
committed by Thilo Graf
parent db3b0cfeed
commit 411c650809
2 changed files with 5 additions and 2 deletions

View File

@@ -120,6 +120,11 @@ void CNeutrinoApp::InitMenu()
CMenuWidget &menuService = personalize.getWidget(MENU_SERVICE); CMenuWidget &menuService = personalize.getWidget(MENU_SERVICE);
nextShortcut = (unsigned int)menuService.getNextShortcut(); nextShortcut = (unsigned int)menuService.getNextShortcut();
menuService.integratePlugins(PLUGIN_INTEGRATION_SERVICE, nextShortcut); menuService.integratePlugins(PLUGIN_INTEGRATION_SERVICE, nextShortcut);
//add PLUGIN_INTEGRATION_MAIN plugins
CMenuWidget &menuMain = personalize.getWidget(MENU_MAIN);
nextShortcut = (unsigned int)menuMain.getNextShortcut();
menuMain.integratePlugins(PLUGIN_INTEGRATION_MAIN, nextShortcut);
} }
//init main menu //init main menu

View File

@@ -16,9 +16,7 @@ enum
enum enum
{ {
PLUGIN_INTEGRATION_DISABLED = 0, PLUGIN_INTEGRATION_DISABLED = 0,
/*
PLUGIN_INTEGRATION_MAIN = 1, PLUGIN_INTEGRATION_MAIN = 1,
*/
PLUGIN_INTEGRATION_MULTIMEDIA = 2, PLUGIN_INTEGRATION_MULTIMEDIA = 2,
PLUGIN_INTEGRATION_SETTING = 3, PLUGIN_INTEGRATION_SETTING = 3,
PLUGIN_INTEGRATION_SERVICE = 4, PLUGIN_INTEGRATION_SERVICE = 4,