aboutsummaryrefslogtreecommitdiff
path: root/pl
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-02 22:19:03 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-02 22:19:03 +0200
commitad4a1e4ac6b9452bb28936623035d01bb03f36f2 (patch)
tree8126cec46695639712586926907c9464e030471f /pl
parentc0174806a7c59cdbac1cd941d66e844e55829444 (diff)
downloadEpisodeBrowser-ad4a1e4ac6b9452bb28936623035d01bb03f36f2.tar.gz
Remember data list view height across sessions.
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 54b5544..297d426 100644
--- a/pl/cfg.pl
+++ b/pl/cfg.pl
@@ -67,3 +67,10 @@ get_focus(V) :-
integer(V), !
; V = 1
).
+
+set_dlv_height(V) :- set_key('DlvHeight', V).
+get_dlv_height(V) :-
+ ( get_key('DlvHeight', V),
+ integer(V), !
+ ; V = 0
+ ).