diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 42 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 4 |
2 files changed, 36 insertions, 10 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 9b7eadf..63cc952 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -51,6 +51,7 @@ | |||
51 | #include "llimpanel.h" | 51 | #include "llimpanel.h" |
52 | #include "llmimetypes.h" | 52 | #include "llmimetypes.h" |
53 | #include "llstartup.h" | 53 | #include "llstartup.h" |
54 | #include "llfloaterchat.h" | ||
54 | #include "llfocusmgr.h" | 55 | #include "llfocusmgr.h" |
55 | #include "llviewerjoystick.h" | 56 | #include "llviewerjoystick.h" |
56 | #include "llfloaterjoystick.h" | 57 | #include "llfloaterjoystick.h" |
@@ -3671,13 +3672,28 @@ void LLAppViewer::idleShutdown() | |||
3671 | && !logoutRequestSent()) | 3672 | && !logoutRequestSent()) |
3672 | { | 3673 | { |
3673 | static S32 total_uploads = 0; | 3674 | static S32 total_uploads = 0; |
3675 | static bool saving_msg = true; | ||
3674 | // Sometimes total upload count can change during logout. | 3676 | // Sometimes total upload count can change during logout. |
3675 | total_uploads = llmax(total_uploads, pending_uploads); | 3677 | total_uploads = llmax(total_uploads, pending_uploads); |
3676 | gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("DisableLoginLogoutScreens")); | 3678 | if (gSavedSettings.getBOOL("DisableLoginLogoutScreens")) |
3677 | S32 finished_uploads = total_uploads - pending_uploads; | 3679 | { |
3678 | F32 percent = 100.f * finished_uploads / total_uploads; | 3680 | if (saving_msg) |
3679 | gViewerWindow->setProgressPercent(percent); | 3681 | { |
3680 | gViewerWindow->setProgressString("Saving final data..."); | 3682 | LLChat chat; |
3683 | chat.mText = "Saving final data..."; | ||
3684 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
3685 | LLFloaterChat::addChat(chat); | ||
3686 | saving_msg = false; | ||
3687 | } | ||
3688 | } | ||
3689 | else | ||
3690 | { | ||
3691 | gViewerWindow->setShowProgress(TRUE); | ||
3692 | S32 finished_uploads = total_uploads - pending_uploads; | ||
3693 | F32 percent = 100.f * finished_uploads / total_uploads; | ||
3694 | gViewerWindow->setProgressPercent(percent); | ||
3695 | gViewerWindow->setProgressString("Saving final data..."); | ||
3696 | } | ||
3681 | return; | 3697 | return; |
3682 | } | 3698 | } |
3683 | 3699 | ||
@@ -3687,9 +3703,19 @@ void LLAppViewer::idleShutdown() | |||
3687 | sendLogoutRequest(); | 3703 | sendLogoutRequest(); |
3688 | 3704 | ||
3689 | // Wait for a LogoutReply message | 3705 | // Wait for a LogoutReply message |
3690 | gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("DisableLoginLogoutScreens")); | 3706 | if (gSavedSettings.getBOOL("DisableLoginLogoutScreens")) |
3691 | gViewerWindow->setProgressPercent(100.f); | 3707 | { |
3692 | gViewerWindow->setProgressString("Logging out..."); | 3708 | LLChat chat; |
3709 | chat.mText = "Logging out..."; | ||
3710 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
3711 | LLFloaterChat::addChat(chat); | ||
3712 | } | ||
3713 | else | ||
3714 | { | ||
3715 | gViewerWindow->setShowProgress(TRUE); | ||
3716 | gViewerWindow->setProgressPercent(100.f); | ||
3717 | gViewerWindow->setProgressString("Logging out..."); | ||
3718 | } | ||
3693 | return; | 3719 | return; |
3694 | } | 3720 | } |
3695 | 3721 | ||
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 449e712..20b14af 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -2921,12 +2921,12 @@ void set_startup_status(const F32 frac, const std::string& string, const std::st | |||
2921 | last_d = new_d; | 2921 | last_d = new_d; |
2922 | LLChat chat; | 2922 | LLChat chat; |
2923 | chat.mText = new_d; | 2923 | chat.mText = new_d; |
2924 | chat.mSourceType = (EChatSourceType)(CHAT_SOURCE_OBJECT+1); | 2924 | chat.mSourceType = CHAT_SOURCE_SYSTEM; |
2925 | LLFloaterChat::addChat(chat); | 2925 | LLFloaterChat::addChat(chat); |
2926 | if(new_d == LLTrans::getString("LoginWaitingForRegionHandshake")) | 2926 | if(new_d == LLTrans::getString("LoginWaitingForRegionHandshake")) |
2927 | { | 2927 | { |
2928 | chat.mText = "MOTD: "+msg; | 2928 | chat.mText = "MOTD: "+msg; |
2929 | chat.mSourceType = (EChatSourceType)(CHAT_SOURCE_OBJECT+1); | 2929 | chat.mSourceType = CHAT_SOURCE_SYSTEM; |
2930 | LLFloaterChat::addChat(chat); | 2930 | LLFloaterChat::addChat(chat); |
2931 | } | 2931 | } |
2932 | } | 2932 | } |