aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-23 13:40:33 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-23 13:40:33 +0200
commita3679c7efce6d20fd035b14ef201b3e89a974946 (patch)
tree1ee927a40fa4723df0a370eb00bf575e07a86393 /c
parente4a169261f33557e5e38f3eb79c7ba8ee7603208 (diff)
downloadEpisodeBrowser-a3679c7efce6d20fd035b14ef201b3e89a974946.tar.gz
Add File > Fetch.
Diffstat (limited to 'c')
-rw-r--r--c/main.c8
-rw-r--r--c/resource.h1
-rw-r--r--c/resource.rc1
3 files changed, 10 insertions, 0 deletions
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