Fixed radio bandwidth not adjusted when the menu is closed or hidden

This commit is contained in:
Ryzerth
2021-08-20 20:40:14 +02:00
parent 1465fb784f
commit b2ce47d975
11 changed files with 164 additions and 88 deletions

View File

@ -322,6 +322,7 @@ namespace ImGui {
}
hzDist = std::clamp<double>(hzDist, relatedVfo->minBandwidth, relatedVfo->maxBandwidth);
relatedVfo->setBandwidth(hzDist);
relatedVfo->onUserChangedBandwidth.emit(hzDist);
return;
}

View File

@ -67,6 +67,8 @@ namespace ImGui {
bool bandwidthLocked;
ImU32 color = IM_COL32(255, 255, 255, 50);
Event<double> onUserChangedBandwidth;
};
class WaterFall {

View File

@ -30,10 +30,11 @@ public:
friend class VFOManager;
private:
std::string name;
dsp::VFO* dspVFO;
ImGui::WaterfallVFO* wtfVFO;
private:
std::string name;
};