From 5b004563a06dd41e5ba474b82088b5ca516bda85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 31 May 2022 23:53:33 +0200 Subject: Remember focused episode. Previously, the episode most recently marked as watched would be selected on startup. --- pl/cfg.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pl') 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 + ). -- cgit v1.2.3