mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-03-27 09:45:29 +01:00
Fixed UI and frequency manager bug
This commit is contained in:
parent
7d720e4d6f
commit
4a2774367f
@ -397,9 +397,10 @@ void MainWindow::draw() {
|
||||
}
|
||||
|
||||
// Handle menu resize
|
||||
float curY = ImGui::GetCursorPosY();
|
||||
ImVec2 winSize = ImGui::GetWindowSize();
|
||||
ImVec2 mousePos = ImGui::GetMousePos();
|
||||
if (!lockWaterfallControls) {
|
||||
float curY = ImGui::GetCursorPosY();
|
||||
bool click = ImGui::IsMouseClicked(ImGuiMouseButton_Left);
|
||||
bool down = ImGui::IsMouseDown(ImGuiMouseButton_Left);
|
||||
if (grabbingMenu) {
|
||||
@ -423,6 +424,8 @@ void MainWindow::draw() {
|
||||
core::configManager.conf["menuWidth"] = menuWidth;
|
||||
core::configManager.release(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Left Column
|
||||
lockWaterfallControls = false;
|
||||
|
@ -167,11 +167,12 @@ private:
|
||||
static void moduleInterfaceHandler(int code, void* in, void* out, void* ctx) {
|
||||
RadioModule* _this = (RadioModule*)ctx;
|
||||
if (code == RADIO_IFACE_CMD_GET_MODE) {
|
||||
*(int*)out = _this->demodId;
|
||||
int* _out = (int*)out;
|
||||
*_out = _this->demodId;
|
||||
}
|
||||
else if (code == RADIO_IFACE_CMD_SET_MODE) {
|
||||
int in = *(int*)in;
|
||||
if (in != _this->demodId) { _this->selectDemodById(in); }
|
||||
int* _in = (int*)in;
|
||||
if (*_in != _this->demodId) { _this->selectDemodById(*_in); }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user