diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.h | 2 |
3 files changed, 22 insertions, 1 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index ec45955..8e11d8c 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -2846,6 +2846,9 @@ bool idle_startup() | |||
2846 | LL_DEBUGS("AppInitStartupState") << "STATE_CLEANUP" << LL_ENDL; | 2846 | LL_DEBUGS("AppInitStartupState") << "STATE_CLEANUP" << LL_ENDL; |
2847 | set_startup_status(1.0, "", ""); | 2847 | set_startup_status(1.0, "", ""); |
2848 | 2848 | ||
2849 | // Make sure we do this right after the login screen -- MC | ||
2850 | update_grid_specific_menus(); | ||
2851 | |||
2849 | // Make sure all the branding is in order -- MC | 2852 | // Make sure all the branding is in order -- MC |
2850 | if (gStatusBar) | 2853 | if (gStatusBar) |
2851 | { | 2854 | { |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index a22f704..b641ce9 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -725,10 +725,26 @@ void init_menus() | |||
725 | gLoginMenuBarView->setBackgroundColor( color ); | 725 | gLoginMenuBarView->setBackgroundColor( color ); |
726 | 726 | ||
727 | gMenuHolder->addChild(gLoginMenuBarView); | 727 | gMenuHolder->addChild(gLoginMenuBarView); |
728 | |||
729 | } | 728 | } |
730 | 729 | ||
731 | 730 | ||
731 | void update_grid_specific_menus() | ||
732 | { | ||
733 | if (!gMenuHolder || !gMenuBarView) | ||
734 | { | ||
735 | return; | ||
736 | } | ||
737 | else | ||
738 | { | ||
739 | // Disable these when we're not on Second Life grids | ||
740 | // (or don't have URLS for them if non-SL grids start using 'em) -- MC | ||
741 | gMenuHolder->childSetEnabled("Manage My Account...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
742 | gMenuHolder->childSetVisible("Manage My Account...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
743 | gMenuHolder->childSetEnabled("Account History...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
744 | gMenuHolder->childSetVisible("Account History...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
745 | } | ||
746 | } | ||
747 | |||
732 | 748 | ||
733 | void init_client_menu(LLMenuGL* menu) | 749 | void init_client_menu(LLMenuGL* menu) |
734 | { | 750 | { |
diff --git a/linden/indra/newview/llviewermenu.h b/linden/indra/newview/llviewermenu.h index f33c201..9c01598 100644 --- a/linden/indra/newview/llviewermenu.h +++ b/linden/indra/newview/llviewermenu.h | |||
@@ -47,6 +47,8 @@ class LLObjectSelection; | |||
47 | void pre_init_menus(); | 47 | void pre_init_menus(); |
48 | void init_menus(); | 48 | void init_menus(); |
49 | void cleanup_menus(); | 49 | void cleanup_menus(); |
50 | // Updates grid-specific menu options after login | ||
51 | void update_grid_specific_menus(); | ||
50 | 52 | ||
51 | void show_debug_menus(); // checks for if menus should be shown first. | 53 | void show_debug_menus(); // checks for if menus should be shown first. |
52 | // builds either current or legacy pie menus depending upon LegacyPieEnabled | 54 | // builds either current or legacy pie menus depending upon LegacyPieEnabled |