diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-02 22:19:03 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-02 22:19:03 +0200 |
commit | ad4a1e4ac6b9452bb28936623035d01bb03f36f2 (patch) | |
tree | 8126cec46695639712586926907c9464e030471f /c/main.cpp | |
parent | c0174806a7c59cdbac1cd941d66e844e55829444 (diff) | |
download | EpisodeBrowser-ad4a1e4ac6b9452bb28936623035d01bb03f36f2.tar.gz |
Remember data list view height across sessions.
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } |