mirror of
https://github.com/open-simh/simh.git
synced 2026-01-14 23:56:22 +00:00
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
@ -1258,9 +1258,12 @@ void HandleCommand (HWND hWnd, WORD wNotify, WORD idCtl, HWND hwCtl)
|
||||
break;
|
||||
|
||||
case IDC_1442:
|
||||
if (btn[IDC_1442].state == STATE_1442_FULL || wNotify == STN_DBLCLK)
|
||||
stuff_cmd("detach cr");
|
||||
else if (btn[IDC_1442].state != STATE_1442_EMPTY && wNotify == STN_CLICKED) {
|
||||
if (btn[IDC_1442].state == STATE_1442_FULL || wNotify == STN_DBLCLK) {
|
||||
if (running)
|
||||
MessageBeep(0);
|
||||
else
|
||||
stuff_cmd("detach cr");
|
||||
} else if (btn[IDC_1442].state != STATE_1442_EMPTY && wNotify == STN_CLICKED) {
|
||||
cr_rewind();
|
||||
update_gui(TRUE);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user