1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 19:05:21 +02:00

Show disk usage of the home partition, not the one mounted on /boot

This commit is contained in:
Paul Cercueil 2014-02-07 13:43:46 +01:00
parent 0fd8333257
commit b0846812b8

View File

@ -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;