See ChangeLog
Monotone-Parent: 14183e9d9367b240b6e0585031a87772c952285a Monotone-Revision: 50e173285f95163a8c7af77f9550d24a75d046e5 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-02-08T16:11:37 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
e350c7b90b
commit
026600472e
|
@ -1,3 +1,8 @@
|
||||||
|
2010-02-08 Francis Lachapelle <flachapelle@inverse.ca>
|
||||||
|
|
||||||
|
* UI/MailerUI/UIxMailListView.m (-messageSize): improved
|
||||||
|
formatting of message size.
|
||||||
|
|
||||||
2010-02-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2010-02-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
* UI/MainUI/SOGoRootPage.m (-_standardDefaultAction): add an
|
* UI/MainUI/SOGoRootPage.m (-_standardDefaultAction): add an
|
||||||
|
|
|
@ -119,9 +119,13 @@
|
||||||
int size;
|
int size;
|
||||||
|
|
||||||
size = [[message valueForKey: @"size"] intValue];
|
size = [[message valueForKey: @"size"] intValue];
|
||||||
|
if (size > 1024*1024)
|
||||||
rc = [NSString stringWithFormat: @"%dK", size/1024];
|
rc = [NSString stringWithFormat: @"%.1f MB", (float) size/1024/1024];
|
||||||
|
else if (size > 1024*100)
|
||||||
|
rc = [NSString stringWithFormat: @"%d KB", size/1024];
|
||||||
|
else
|
||||||
|
rc = [NSString stringWithFormat: @"%.1f KB", (float) size/1024];
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue