- manager: show notice create time rather than arrival time

- client: don't show "need network" notice if we don't need it

svn path=/trunk/boinc/; revision=23133
This commit is contained in:
David Anderson 2011-03-02 18:53:18 +00:00
parent e05d9ff77c
commit 81ca21c828
3 changed files with 16 additions and 5 deletions

View File

@ -1241,3 +1241,12 @@ Rom 2 Mar 2011
clientgui/
NoticeListCtrl.cpp, .h
David 2 Mar 2011
- manager: show notice create time rather than arrival time
- client: don't show "need network" notice if we don't need it
clientgui/
NoticeListCtrl.cpp
client/
cs_notice.cpp

View File

@ -484,7 +484,9 @@ void NOTICES::write(int seqno, GUI_RPC_CONN& grpc, MIOFILE& fout, bool public_on
unsigned int i;
MIOFILE mf;
if (net_status.network_status() != NETWORK_STATUS_WANT_CONNECTION) {
switch (net_status.network_status()) {
case NETWORK_STATUS_ONLINE:
case NETWORK_STATUS_WANT_DISCONNECT:
remove_network_msg();
}
if (log_flags.notice_debug) {

View File

@ -466,7 +466,7 @@ wxString CNoticeListCtrl::OnGetItem(size_t i) const {
wxString strDescription = wxEmptyString;
wxString strProjectName = wxEmptyString;
wxString strURL = wxEmptyString;
wxString strArrivalTime = wxEmptyString;
wxString create_time = wxEmptyString;
wxString strBuffer = wxEmptyString;
wxString strTemp = wxEmptyString;
wxDateTime dtBuffer;
@ -506,8 +506,8 @@ wxString CNoticeListCtrl::OnGetItem(size_t i) const {
strDescription = wxString(np->description.c_str(), wxConvUTF8);
pDoc->LocalizeNoticeText(strDescription, true);
dtBuffer.Set((time_t)np->arrival_time);
strArrivalTime = dtBuffer.Format();
dtBuffer.Set((time_t)np->create_time);
create_time = dtBuffer.Format();
strBuffer = wxT("<table border=0 cellpadding=5><tr><td>");
@ -523,7 +523,7 @@ wxString CNoticeListCtrl::OnGetItem(size_t i) const {
strBuffer += wxT("<br><font size=-2 color=#8f8f8f>");
strBuffer += strArrivalTime;
strBuffer += create_time;
if (!strURL.IsEmpty()) {
strTemp.Printf(