move Games button to far left

It'll be most often used
This commit is contained in:
Eric House 2021-03-09 07:53:34 -08:00
parent bf88c000b7
commit d6d613e2aa

View file

@ -821,18 +821,19 @@ updateDeviceButtons( Globals* globals )
{
const char* buttons[MAX_BUTTONS];
int cur = 0;
if ( 0 < countDicts( globals ) ) {
buttons[cur++] = BUTTON_GAME_NEW;
}
if ( 0 < countGames(globals) ) {
buttons[cur++] = BUTTON_GAME_OPEN;
}
if ( 0 < countDicts( globals ) ) {
buttons[cur++] = BUTTON_GAME_NEW;
}
if ( !!getCurGame( globals ) ) {
buttons[cur++] = BUTTON_GAME_RENAME;
buttons[cur++] = BUTTON_GAME_DELETE;
}
buttons[cur++] = BUTTON_NAME;
buttons[cur++] = NULL;
XP_ASSERT( cur <= VSIZE(buttons) );
setButtons( BUTTONS_ID_DEVICE, buttons, onDeviceButton, globals );
}