| 1889 | // ------------------------------------------------ |
| 1890 | |
| 1891 | void MainWindow::varReceive(std::function<void(bool)> recvAction) { |
| 1892 | if (guiDebug) { |
| 1893 | recvAction(false); |
| 1894 | } else { |
| 1895 | m_recvAction = std::move(recvAction); |
| 1896 | emu.receive(); |
| 1897 | } |
| 1898 | } |
| 1899 | |
| 1900 | void MainWindow::varToggle() { |
| 1901 | guiReceive = !guiReceive; |