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/layout.h | |
parent | c0174806a7c59cdbac1cd941d66e844e55829444 (diff) | |
download | EpisodeBrowser-ad4a1e4ac6b9452bb28936623035d01bb03f36f2.tar.gz |
Remember data list view height across sessions.
Diffstat (limited to 'c/layout.h')
-rw-r--r-- | c/layout.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -5,6 +5,7 @@ #include "common.h" #include "datalistview.h" +#include "pl.h" void UpdateLayout(int w = 0, int h = 0); @@ -44,6 +45,7 @@ inline bool Dragger::HandleDown() if (IsDouble()) { extern DataListView* g_dlv; g_dlv->SetHeight(0); + Pl("cfg","set_dlv_height",0); UpdateLayout(); return false; } else @@ -62,10 +64,13 @@ inline bool Dragger::HandleMove() SetCursor(g_hcSizeNs); else r = false; - if (m_bActive) - Drag(pt.x, pt.y); - if (!IsDown()) + if (!m_bActive) return r; + Drag(pt.x, pt.y); + if (!IsDown()) { + extern DataListView* g_dlv; m_bActive = false; + Pl("cfg","set_dlv_height",g_dlv->Height()); + } return r; } |