mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
move Games button to far left
It'll be most often used
This commit is contained in:
parent
bf88c000b7
commit
d6d613e2aa
1 changed files with 4 additions and 3 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue