aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-24 14:07:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-24 14:07:49 +0200
commit982ff70193bca89facf898dad9f78fbaf6408219 (patch)
tree1a7a1cbc1ab1fd15ef321fe20717ffdb28ef754e /c/main.cpp
parent4f26641099410779089851009b1e5945a3613f9c (diff)
downloadEpisodeBrowser-982ff70193bca89facf898dad9f78fbaf6408219.tar.gz
Add File > Fetch > Cancel Fetch menu item.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 5935ee1..244d1fe 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -312,6 +312,7 @@ LRESULT CALLBACK HandleMsg(const HWND hWnd, const UINT uMsg, const WPARAM wParam
/*IDM_FILE_REFRESH*/L"Quickly refresh episode list.",
/*IDM_FILE_FETCH_DATA*/L"Fetch episode data from the web (may take a few seconds).",
/*IDM_FILE_FETCH_SCREENWRITERS*/L"Fetch screenwriters from the web (may take a minute).",
+ /*IDM_FILE_FETCH_CANCEL*/L"Stop fetching data from the web.",
/*IDM_FILE_ABOUT*/L"Show information about Episode Browser.",
/*IDM_VIEW_WATCHED*/(g_cfg.bViewWatched?
L"Click to hide watched episodes.":
@@ -395,6 +396,10 @@ void HandleMainMenu(const HWND hWnd, const WORD command)
WaitFor(FetchScreenwriters);
break;
+ case IDM_FILE_FETCH_CANCEL:
+ WaitFor(nullptr);
+ break;
+
case IDM_FILE_ABOUT:
DialogBox(
GetModuleHandle(nullptr),