From 982ff70193bca89facf898dad9f78fbaf6408219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 24 Aug 2022 14:07:49 +0200 Subject: Add File > Fetch > Cancel Fetch menu item. --- c/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'c/main.cpp') 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), -- cgit v1.2.3