mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 04:17:50 +02:00
Fixed radio bandwidth not adjusted when the menu is closed or hidden
This commit is contained in:
@ -322,6 +322,7 @@ namespace ImGui {
|
||||
}
|
||||
hzDist = std::clamp<double>(hzDist, relatedVfo->minBandwidth, relatedVfo->maxBandwidth);
|
||||
relatedVfo->setBandwidth(hzDist);
|
||||
relatedVfo->onUserChangedBandwidth.emit(hzDist);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,8 @@ namespace ImGui {
|
||||
bool bandwidthLocked;
|
||||
|
||||
ImU32 color = IM_COL32(255, 255, 255, 50);
|
||||
|
||||
Event<double> onUserChangedBandwidth;
|
||||
};
|
||||
|
||||
class WaterFall {
|
||||
|
@ -30,10 +30,11 @@ public:
|
||||
|
||||
friend class VFOManager;
|
||||
|
||||
private:
|
||||
std::string name;
|
||||
dsp::VFO* dspVFO;
|
||||
ImGui::WaterfallVFO* wtfVFO;
|
||||
|
||||
private:
|
||||
std::string name;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user