mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-30 06:17:49 +02:00
Cleaned up UI code
This commit is contained in:
@ -68,7 +68,7 @@ namespace displaymenu {
|
||||
break;
|
||||
}
|
||||
}
|
||||
setFFTSize(FFTSizes[fftSizeId]);
|
||||
gui::mainWindow.setFFTSize(FFTSizes[fftSizeId]);
|
||||
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ namespace displaymenu {
|
||||
ImGui::SameLine();
|
||||
ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX());
|
||||
if (ImGui::Combo("##test_fft_size", &fftSizeId, FFTSizesStr)) {
|
||||
setFFTSize(FFTSizes[fftSizeId]);
|
||||
gui::mainWindow.setFFTSize(FFTSizes[fftSizeId]);
|
||||
core::configManager.aquire();
|
||||
core::configManager.conf["fftSize"] = FFTSizes[fftSizeId];
|
||||
core::configManager.release(true);
|
||||
|
@ -37,7 +37,7 @@ namespace sourecmenu {
|
||||
}
|
||||
float itemWidth = ImGui::GetContentRegionAvailWidth();
|
||||
|
||||
if (sdrIsRunning()) { style::beginDisabled(); }
|
||||
if (gui::mainWindow.sdrIsRunning()) { style::beginDisabled(); }
|
||||
|
||||
ImGui::SetNextItemWidth(itemWidth);
|
||||
if (ImGui::Combo("##source", &sourceId, items.c_str())) {
|
||||
@ -47,7 +47,7 @@ namespace sourecmenu {
|
||||
core::configManager.release(true);
|
||||
}
|
||||
|
||||
if (sdrIsRunning()) { style::endDisabled(); }
|
||||
if (gui::mainWindow.sdrIsRunning()) { style::endDisabled(); }
|
||||
|
||||
sigpath::sourceManager.showSelectedMenu();
|
||||
|
||||
|
Reference in New Issue
Block a user