From c9b8d278883a90f534f30f0830bb003460310823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 30 Mar 2022 20:15:52 +0200 Subject: Disregard foreign frames. I don't think they're necessary. --- c/main.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'c/main.c') diff --git a/c/main.c b/c/main.c index 8f8b0e5..90ae714 100644 --- a/c/main.c +++ b/c/main.c @@ -112,7 +112,6 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) break; case WM_ACTIVATE: switch (wParam) { - fid_t f; term_t t; extern HWND HElv; case WA_INACTIVE: @@ -121,11 +120,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) SetFocus(HElv); /* FALLTHROUGH */ case WA_CLICKACTIVE: - F(f); t = T(0); P("track_episodes","update_tracked_episodes",0,t); ElvRedraw(); - Fd(f); } break; case WM_NOTIFY: @@ -155,11 +152,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case ID_FORGET: case ID_LOOKUP: { - fid_t f; term_t t; extern LPLVITEM LpLviElvSelection; - F(f); t = T(1); PI(t,LpLviElvSelection->lParam) break; @@ -183,8 +178,6 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) DlvShowEpisode(LpLviElvSelection->lParam); break; } - - Fd(f); break; } } @@ -223,18 +216,11 @@ AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) int Attach() { - fid_t f; term_t t; - - F(f); t = T(0); - P("track_episodes","attach",0,t) goto f; - P("episode_data","attach",0,t) goto f; - - Fd(f); + P("track_episodes","attach",0,t) return 0; + P("episode_data","attach",0,t) return 0; return 1; -f: Fd(f); - return 0; } void -- cgit v1.2.3