From 58d3a02855fd05865b3f720b3c51e999d4eedae9 Mon Sep 17 00:00:00 2001 From: antihax Date: Mon, 9 Dec 2019 00:19:45 -0600 Subject: [PATCH] Stop spamming hundreds of `No SoapySDR Module` dialogs. (#773) --- src/forms/SDRDevices/SDRDevices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forms/SDRDevices/SDRDevices.cpp b/src/forms/SDRDevices/SDRDevices.cpp index 1ad0068..965c8dc 100644 --- a/src/forms/SDRDevices/SDRDevices.cpp +++ b/src/forms/SDRDevices/SDRDevices.cpp @@ -408,10 +408,10 @@ void SDRDevicesDialog::OnDeviceTimer( wxTimerEvent& event ) { if (refresh) { if (wxGetApp().areModulesMissing()) { if (!failed) { + failed = true; wxMessageDialog *info; info = new wxMessageDialog(NULL, wxT("\nNo SoapySDR modules were found.\n\nCubicSDR requires at least one SoapySDR device support module to be installed.\n\nPlease visit https://github.com/cjcliffe/CubicSDR/wiki and in the build instructions for your platform read the 'Support Modules' section for more information."), wxT("\x28\u256F\xB0\u25A1\xB0\uFF09\u256F\uFE35\x20\u253B\u2501\u253B"), wxOK | wxICON_ERROR); info->ShowModal(); - failed = true; } return; }