Test button is now only enabled if there were no errors during compilation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@957 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
684029a008
commit
6746a0e7f4
2 changed files with 7 additions and 6 deletions
|
@ -48,11 +48,12 @@
|
|||
|
||||
// Extern Variables
|
||||
extern const char *NSISW_VERSION;
|
||||
extern char *g_script;
|
||||
extern HWND g_hwnd;
|
||||
extern HANDLE g_hThread;
|
||||
extern char *g_output_exe;
|
||||
extern char *g_input_script;
|
||||
extern char *g_script;
|
||||
extern HWND g_hwnd;
|
||||
extern HANDLE g_hThread;
|
||||
extern char *g_output_exe;
|
||||
extern char *g_input_script;
|
||||
extern int g_retcode;
|
||||
|
||||
// makensisw
|
||||
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, char *cmdParam, int cmdShow);
|
||||
|
|
|
@ -128,7 +128,7 @@ void EnableItems(HWND hwnd) {
|
|||
if (MSG2(EM_FINDTEXT, 0, (LPARAM)&ft) != -1) g_warnings++;
|
||||
|
||||
HMENU m = GetMenu(hwnd);
|
||||
if (g_output_exe) {
|
||||
if (g_output_exe && !g_retcode) {
|
||||
EnableWindow(GetDlgItem(hwnd,IDC_TEST),1);
|
||||
EnableMenuItem(m,IDM_TEST,MF_ENABLED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue