From b6d033481f62626cf7bb8861b4657f1cd8d3539e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Thu, 13 Jan 2022 00:09:45 +0100 Subject: [PATCH] Change tooltip for Pause button if paused --- src/win/win_toolbar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/win/win_toolbar.c b/src/win/win_toolbar.c index b4ebab0c6..03b796059 100644 --- a/src/win/win_toolbar.c +++ b/src/win/win_toolbar.c @@ -43,8 +43,11 @@ ToolBarProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) uintptr_t idButton = lpttt->hdr.idFrom; switch (idButton) { - case IDM_ACTION_PAUSE: - lpttt->lpszText = MAKEINTRESOURCE(IDS_2155); + case IDM_ACTION_PAUSE: + if (dopause) + lpttt->lpszText = MAKEINTRESOURCE(IDS_2154); + else + lpttt->lpszText = MAKEINTRESOURCE(IDS_2155); break; case IDM_ACTION_RESET_CAD: