diff options
author | John Ankarström <john@ankarstrom.se> | 2022-05-31 23:53:33 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-05-31 23:53:33 +0200 |
commit | 5b004563a06dd41e5ba474b82088b5ca516bda85 (patch) | |
tree | 99efa34e6b95b6eaba47153a2698482eb30dfa83 /pl/cfg.pl | |
parent | d818325292f8af780d995d4bcd3bc3ea80133ebd (diff) | |
download | EpisodeBrowser-5b004563a06dd41e5ba474b82088b5ca516bda85.tar.gz |
Remember focused episode.
Previously, the episode most recently marked as watched would be
selected on startup.
Diffstat (limited to 'pl/cfg.pl')
-rw-r--r-- | pl/cfg.pl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 + ). |