From ad4a1e4ac6b9452bb28936623035d01bb03f36f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 2 Aug 2022 22:19:03 +0200 Subject: Remember data list view height across sessions. --- c/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'c/main.cpp') diff --git a/c/main.cpp b/c/main.cpp index 477e750..d76225e 100644 --- a/c/main.cpp +++ b/c/main.cpp @@ -193,11 +193,17 @@ static LRESULT CALLBACK CBTProc(const int nCode, const WPARAM wParam, const LPAR g_elv = new EpisodeListView(g_hWnd); /* Get saved view settings. */ - char* s; Pl("cfg","get_view_watched",&g_bViewWatched); Pl("cfg","get_view_tv_original",&g_bViewTVOriginal); + + char* s; if (Pl("cfg","get_limit_screenwriter",&s)) strcpy_s(g_currentScreenwriter, sizeof(g_currentScreenwriter), s); + + int dlvHeight = 0; + Pl("cfg","get_dlv_height",&dlvHeight); + g_dlv->SetHeight(dlvHeight); + return 0; } -- cgit v1.2.3