From a3679c7efce6d20fd035b14ef201b3e89a974946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 23 Apr 2022 13:40:33 +0200 Subject: Add File > Fetch. --- c/main.c | 8 ++++++++ c/resource.h | 1 + c/resource.rc | 1 + 3 files changed, 10 insertions(+) (limited to 'c') diff --git a/c/main.c b/c/main.c index eb60249..259a526 100644 --- a/c/main.c +++ b/c/main.c @@ -212,6 +212,14 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case IDM_FILE_RESET: ElvSelectRecent(); break; + case IDM_FILE_FETCH: + { + term_t t; + t = T(0); + P("episode_data","fetch_episode_data",0,t); + ElvUpdate(); + break; + } case IDM_FILE_ABOUT: DialogBox( GetModuleHandle(NULL), diff --git a/c/resource.h b/c/resource.h index c251144..b31a3cf 100644 --- a/c/resource.h +++ b/c/resource.h @@ -11,6 +11,7 @@ #define IDM_FILE_EXIT 401 #define IDM_FILE_REFRESH 402 #define IDM_FILE_RESET 403 +#define IDM_FILE_FETCH 404 #define IDM_FILE_ABOUT 411 #define IDM_VIEW_WATCHED 421 #define IDM_VIEW_TV_ORIGINAL 422 diff --git a/c/resource.rc b/c/resource.rc index 6a73e01..94f2ff2 100644 --- a/c/resource.rc +++ b/c/resource.rc @@ -7,6 +7,7 @@ IDR_MENU MENU BEGIN POPUP "&File" BEGIN + MENUITEM "&Fetch", IDM_FILE_FETCH MENUITEM "&Refresh", IDM_FILE_REFRESH MENUITEM "Re&set", IDM_FILE_RESET MENUITEM "E&xit", IDM_FILE_EXIT -- cgit v1.2.3