core, frontends (menus): MENU_ROOM and MENU_SINGLE are now managed
This commit is contained in:
parent
126d95e764
commit
08be0324a6
1 changed files with 66 additions and 44 deletions
|
|
@ -133,8 +133,13 @@ class QuickApp(object):
|
|||
return
|
||||
self.profiles[profile] = {}
|
||||
if self.single_profile:
|
||||
self.profile = profile
|
||||
|
||||
self.profile = profile # FIXME: must be refactored (multi profiles are not managed correclty)
|
||||
raw_menus = self.bridge.getMenus("", C.NO_SECURITY_LIMIT )
|
||||
menus = self.profiles[profile]['menus'] = {}
|
||||
for raw_menu in raw_menus:
|
||||
id_, type_, path, path_i18n = raw_menu
|
||||
menus_data = menus.setdefault(type_, [])
|
||||
menus_data.append((id_, path, path_i18n))
|
||||
self.launchAction(C.AUTHENTICATE_PROFILE_ID, {'caller': 'plug_profile'}, profile_key=profile)
|
||||
|
||||
def plug_profile_1(self, profile):
|
||||
|
|
|
|||
Loading…
Reference in a new issue