Show Open instead of Launch when a folder is selected

This commit is contained in:
Sahin Habermann 2018-02-23 11:33:16 +01:00 committed by plutoo
parent 72116ed62b
commit 3a415ddaf7

View File

@ -193,6 +193,13 @@ static void drawEntry(menuEntry_s* me, int off_x, int is_active) {
memset(tmpstr, 0, sizeof(tmpstr));
snprintf(tmpstr, sizeof(tmpstr)-1, "Version: %s", me->version);
DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30 + 18 + 6, themeCurrent.textColor, tmpstr);
drawImage(1280 - 126, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32);
DrawText(tahoma12, 1280 - 90, 720 - 44, themeCurrent.textColor, "Launch");
}
else {
drawImage(1280 - 126, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32);
DrawText(tahoma12, 1280 - 90, 720 - 44, themeCurrent.textColor, "Open");
}
}
}
@ -290,9 +297,6 @@ void menuLoop() {
//drawTime();
drawImage(1280 - 126, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32);
DrawText(tahoma12, 1280 - 90, 720 - 44, themeCurrent.textColor, "Launch");
if (menu->nEntries==0)
{
DrawText(tahoma12, 64, 128, themeCurrent.textColor, textGetString(StrId_NoAppsFound_Msg));