mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
mode: remove mode handler dependency in child modes
This commit is contained in:
parent
2fbe6e84be
commit
6bd80c5944
5 changed files with 11 additions and 9 deletions
|
|
@ -17,7 +17,6 @@
|
|||
#include "Device/firmwareupdatedialog.h"
|
||||
#include "preferences.h"
|
||||
#include "Generator/signalgenwidget.h"
|
||||
#include "modehandler.h"
|
||||
|
||||
#include <QDockWidget>
|
||||
#include <QDesktopWidget>
|
||||
|
|
@ -434,7 +433,7 @@ using namespace std;
|
|||
|
||||
void SpectrumAnalyzer::NewDatapoint(Protocol::SpectrumAnalyzerResult d)
|
||||
{
|
||||
if(window->getModeHandler()->getActiveMode() != this) {
|
||||
if(isActive != true) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -571,7 +570,7 @@ void SpectrumAnalyzer::SettingsChanged()
|
|||
}
|
||||
}
|
||||
|
||||
if(window->getDevice() && window->getModeHandler()->getActiveMode() == this) {
|
||||
if(window->getDevice() && isActive) {
|
||||
window->getDevice()->Configure(settings, [=](Device::TransmissionResult res){
|
||||
// device received command
|
||||
changingSettings = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue