Skip to content

Commit

Permalink
Update Game List when setting new Game List Tags
Browse files Browse the repository at this point in the history
Using the Game List Tags dialog to alter the gae header lines now
automatically causes an update of the Game list according to the new
tags specification.
  • Loading branch information
H.G.Muller authored and arunpersaud committed Oct 16, 2014
1 parent 52b7a0d commit 67051c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions dialogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2149,6 +2149,7 @@ GLT_OK (int n)
{
GLT_ParseList();
appData.gameListTags = strdup(lpUserGLT);
GameListUpdate();
return 1;
}

Expand Down
1 change: 1 addition & 0 deletions frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ void GameListPopUp P((FILE *fp, char *filename));
void GameListPopDown P((void));
void GameListHighlight P((int index));
void GameListDestroy P((void));
void GameListUpdate P((void));
FILE *GameFile P((void));

/* these are in wedittags.c */
Expand Down
7 changes: 7 additions & 0 deletions ngamelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ GameListReplace (int page)
SetDialogTitle(GameListDlg, buf);
}

void
GameListUpdate ()
{
GameListPrepare(False, False);
GameListReplace(0);
}

void
GameListPopUp (FILE *fp, char *filename)
{
Expand Down

0 comments on commit 67051c8

Please sign in to comment.