diff options
-rw-r--r-- | c/episodelistview.c | 1 | ||||
-rw-r--r-- | c/main.c | 15 |
2 files changed, 13 insertions, 3 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index 59dfed7..dbccd29 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -162,7 +162,6 @@ ElvUpdate() F(f); t = T(2); - P("track_episodes","update_tracked_episodes",0,t); q = Q("local_episodes","episode_file",2,t); for (int i = 0; Qn(q); i++) { @@ -91,13 +91,24 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_DESTROY: PostQuitMessage(0); break; + case WM_SIZE: + UpdateLayout(hWnd); + break; case WM_CREATE: HWnd = hWnd; DlvCreate(); ElvCreate(); break; - case WM_SIZE: - UpdateLayout(hWnd); + case WM_ACTIVATE: + if (wParam != WA_INACTIVE) { + fid_t f; + term_t t; + F(f); + t = T(0); + P("track_episodes","update_tracked_episodes",0,t); + ElvRedraw(); + Fd(f); + } break; case WM_NOTIFY: switch (((LPNMHDR)lParam)->idFrom) { |