diff options
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index ef25fb8..9073874 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -1019,7 +1019,7 @@ bool idle_startup() | |||
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | // Display the startup progress bar. | 1021 | // Display the startup progress bar. |
1022 | gViewerWindow->setShowProgress(TRUE); | 1022 | gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("DisableLoginLogoutScreens")); |
1023 | gViewerWindow->setProgressCancelButtonVisible(TRUE, std::string("Quit")); // *TODO: Translate | 1023 | gViewerWindow->setProgressCancelButtonVisible(TRUE, std::string("Quit")); // *TODO: Translate |
1024 | 1024 | ||
1025 | // Poke the VFS, which could potentially block for a while if | 1025 | // Poke the VFS, which could potentially block for a while if |
@@ -2927,13 +2927,34 @@ bool first_run_dialog_callback(const LLSD& notification, const LLSD& response) | |||
2927 | } | 2927 | } |
2928 | 2928 | ||
2929 | 2929 | ||
2930 | 2930 | std::string last_d; | |
2931 | void set_startup_status(const F32 frac, const std::string& string, const std::string& msg) | 2931 | void set_startup_status(const F32 frac, const std::string& string, const std::string& msg) |
2932 | { | 2932 | { |
2933 | gViewerWindow->setProgressPercent(frac*100); | 2933 | if(gSavedSettings.getBOOL("DisableLoginLogoutScreens")) |
2934 | gViewerWindow->setProgressString(string); | 2934 | { |
2935 | std::string new_d = string; | ||
2936 | if(new_d != last_d) | ||
2937 | { | ||
2938 | last_d = new_d; | ||
2939 | LLChat chat; | ||
2940 | chat.mText = new_d; | ||
2941 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
2942 | LLFloaterChat::addChat(chat); | ||
2943 | if(new_d == LLTrans::getString("LoginWaitingForRegionHandshake")) | ||
2944 | { | ||
2945 | chat.mText = "MOTD: "+msg; | ||
2946 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
2947 | LLFloaterChat::addChat(chat); | ||
2948 | } | ||
2949 | } | ||
2950 | } | ||
2951 | else | ||
2952 | { | ||
2953 | gViewerWindow->setProgressPercent(frac*100); | ||
2954 | gViewerWindow->setProgressString(string); | ||
2935 | 2955 | ||
2936 | gViewerWindow->setProgressMessage(msg); | 2956 | gViewerWindow->setProgressMessage(msg); |
2957 | } | ||
2937 | } | 2958 | } |
2938 | 2959 | ||
2939 | bool login_alert_status(const LLSD& notification, const LLSD& response) | 2960 | bool login_alert_status(const LLSD& notification, const LLSD& response) |