diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-24 14:09:48 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-24 14:09:48 +0200 |
commit | ff48d644a45dd71098ecb9007a41807fb37d0081 (patch) | |
tree | 9af217655828fc89456df2a25a6bedc41e006fd4 /c | |
parent | 982ff70193bca89facf898dad9f78fbaf6408219 (diff) | |
download | EpisodeBrowser-ff48d644a45dd71098ecb9007a41807fb37d0081.tar.gz |
Gray out Cancel immediately after it has been pressed.
Diffstat (limited to 'c')
-rw-r--r-- | c/data.cpp | 1 | ||||
-rw-r--r-- | c/resource.rc | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -145,6 +145,7 @@ void WaitFor(void (*f)(unsigned char*)) /* Null indicates that any active task should be cancelled. */ if (!f) { sig |= ABORT; + EnableMenuItem(GetMenu(g_hWnd), IDM_FILE_FETCH_CANCEL, MF_GRAYED); return; } diff --git a/c/resource.rc b/c/resource.rc index acecce4..37df1e1 100644 --- a/c/resource.rc +++ b/c/resource.rc @@ -11,7 +11,7 @@ BEGIN BEGIN MENUITEM "&General Data", IDM_FILE_FETCH_DATA MENUITEM "&Screenwriters", IDM_FILE_FETCH_SCREENWRITERS - MENUITEM "&Cancel Fetch", IDM_FILE_FETCH_CANCEL, GRAYED + MENUITEM "&Cancel", IDM_FILE_FETCH_CANCEL, GRAYED END MENUITEM "&Refresh", IDM_FILE_REFRESH MENUITEM "E&xit", IDM_FILE_EXIT |