aboutsummaryrefslogtreecommitdiff
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
parente4a169261f33557e5e38f3eb79c7ba8ee7603208 (diff)
downloadEpisodeBrowser-a3679c7efce6d20fd035b14ef201b3e89a974946.tar.gz
Add File > Fetch.
-rw-r--r--c/main.c8
-rw-r--r--c/resource.h1
-rw-r--r--c/resource.rc1
-rw-r--r--pl/episode_data.pl1
4 files changed, 11 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
diff --git a/pl/episode_data.pl b/pl/episode_data.pl
index 11bc22a..63a54ed 100644
--- a/pl/episode_data.pl
+++ b/pl/episode_data.pl
@@ -1,4 +1,5 @@
:- module(episode_data, [ensure_episode_data/0,
+ fetch_episode_data/0,
retract_episode/1,
episode_count/1,
rate_episode/2,