aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-05-31 23:53:33 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-05-31 23:53:33 +0200
commit5b004563a06dd41e5ba474b82088b5ca516bda85 (patch)
tree99efa34e6b95b6eaba47153a2698482eb30dfa83 /c/episodelistview.c
parentd818325292f8af780d995d4bcd3bc3ea80133ebd (diff)
downloadEpisodeBrowser-5b004563a06dd41e5ba474b82088b5ca516bda85.tar.gz
Remember focused episode.
Previously, the episode most recently marked as watched would be selected on startup.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r--c/episodelistview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c
index e932ba7..ac1ac2f 100644
--- a/c/episodelistview.c
+++ b/c/episodelistview.c
@@ -172,9 +172,9 @@ ElvSetTop(int iItem)
ListView_EnsureVisible(HElv, iItem, TRUE);
}
-/* Select most recent episode. */
+/* Select previously focused episode. */
void
-ElvSelectRecent()
+ElvSelectFocus()
{
int i, iEpisode, iItem;
LVFINDINFO lvfi;
@@ -182,7 +182,7 @@ ElvSelectRecent()
t = T(1);
iItem = 0;
- P("track_episodes","most_recently_watched",1,t) goto s;
+ P("cfg","get_focus",1,t) goto s;
GI(t,&iEpisode) return;
lvfi.flags = LVFI_PARAM;