mirror of
https://github.com/simh/simh.git
synced 2026-02-03 15:13:56 +00:00
IBM1130: Make sure GUI Card Reader doesn't change while simulator is running
as discussed in #454
This commit is contained in:
@@ -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) {
|
||||||
stuff_cmd("detach cr");
|
if (running)
|
||||||
else if (btn[IDC_1442].state != STATE_1442_EMPTY && wNotify == STN_CLICKED) {
|
MessageBeep(0);
|
||||||
|
else
|
||||||
|
stuff_cmd("detach cr");
|
||||||
|
} else if (btn[IDC_1442].state != STATE_1442_EMPTY && wNotify == STN_CLICKED) {
|
||||||
cr_rewind();
|
cr_rewind();
|
||||||
update_gui(TRUE);
|
update_gui(TRUE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user