diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-24 14:07:49 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-24 14:07:49 +0200 |
commit | 982ff70193bca89facf898dad9f78fbaf6408219 (patch) | |
tree | 1a7a1cbc1ab1fd15ef321fe20717ffdb28ef754e /c/main.cpp | |
parent | 4f26641099410779089851009b1e5945a3613f9c (diff) | |
download | EpisodeBrowser-982ff70193bca89facf898dad9f78fbaf6408219.tar.gz |
Add File > Fetch > Cancel Fetch menu item.
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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), |