aboutsummaryrefslogtreecommitdiff
path: root/pl
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 /pl
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 'pl')
-rw-r--r--pl/cfg.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/pl/cfg.pl b/pl/cfg.pl
index 7cbff11..54b5544 100644
--- a/pl/cfg.pl
+++ b/pl/cfg.pl
@@ -60,3 +60,10 @@ get_sort(V) :-
V is W - 2147483647
; V = 1
).
+
+set_focus(V) :- set_key('Focus', V).
+get_focus(V) :-
+ ( get_key('Focus', V),
+ integer(V), !
+ ; V = 1
+ ).