From ff48d644a45dd71098ecb9007a41807fb37d0081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 24 Aug 2022 14:09:48 +0200 Subject: Gray out Cancel immediately after it has been pressed. --- c/data.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'c/data.cpp') diff --git a/c/data.cpp b/c/data.cpp index d9401c9..0ac27ce 100644 --- a/c/data.cpp +++ b/c/data.cpp @@ -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; } -- cgit v1.2.3