mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-17 21:45:20 +02:00
Show disk usage of the home partition, not the one mounted on /boot
This commit is contained in:
parent
0fd8333257
commit
b0846812b8
@ -302,11 +302,7 @@ void GMenu2X::initBG() {
|
||||
Surface *sd = Surface::loadImage("imgs/sd.png", confStr["skin"]);
|
||||
if (sd) sd->blit(bgmain, 3, bottomBarIconY);
|
||||
|
||||
#if defined(PLATFORM_A320) || defined(PLATFORM_GCW0)
|
||||
string df = getDiskFree("/boot");
|
||||
#else
|
||||
string df = getDiskFree(CARD_ROOT);
|
||||
#endif
|
||||
string df = getDiskFree(getHome().c_str());
|
||||
bgmain->write(font, df, 22, bottomBarTextY, Font::HAlignLeft, Font::VAlignMiddle);
|
||||
delete sd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user