mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 23:13:43 +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
|
|
@ -1,5 +1,4 @@
|
|||
#include "generator.h"
|
||||
#include "modehandler.h"
|
||||
|
||||
#include <QSettings>
|
||||
|
||||
|
|
@ -56,7 +55,7 @@ void Generator::fromJSON(nlohmann::json j)
|
|||
|
||||
void Generator::updateDevice()
|
||||
{
|
||||
if(!window->getDevice() || window->getModeHandler()->getActiveMode() != this) {
|
||||
if(!window->getDevice() || isActive != true) {
|
||||
// can't update if not connected
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue