IBM1130: Make sure GUI Card Reader doesn't change while simulator is running
as discussed in #454
This commit is contained in:
parent
22efe75883
commit
b8f6dfaf9e
1 changed files with 6 additions and 3 deletions
|
@ -1258,9 +1258,12 @@ void HandleCommand (HWND hWnd, WORD wNotify, WORD idCtl, HWND hwCtl)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_1442:
|
case IDC_1442:
|
||||||
if (btn[IDC_1442].state == STATE_1442_FULL || wNotify == STN_DBLCLK)
|
if (btn[IDC_1442].state == STATE_1442_FULL || wNotify == STN_DBLCLK) {
|
||||||
|
if (running)
|
||||||
|
MessageBeep(0);
|
||||||
|
else
|
||||||
stuff_cmd("detach cr");
|
stuff_cmd("detach cr");
|
||||||
else if (btn[IDC_1442].state != STATE_1442_EMPTY && wNotify == STN_CLICKED) {
|
} else if (btn[IDC_1442].state != STATE_1442_EMPTY && wNotify == STN_CLICKED) {
|
||||||
cr_rewind();
|
cr_rewind();
|
||||||
update_gui(TRUE);
|
update_gui(TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue