mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-09 01:37:13 +01:00
22 lines
682 B
C++
22 lines
682 B
C++
|
#include <gui/menus/display.h>
|
||
|
#include <imgui.h>
|
||
|
#include <gui/gui.h>
|
||
|
#include <core.h>
|
||
|
|
||
|
namespace displaymenu {
|
||
|
bool showWaterfall;
|
||
|
|
||
|
void init() {
|
||
|
showWaterfall = core::configManager.conf["showWaterfall"];
|
||
|
showWaterfall ? gui::waterfall.showWaterfall() : gui::waterfall.hideWaterfall();
|
||
|
}
|
||
|
|
||
|
void draw(void* ctx) {
|
||
|
if (ImGui::Checkbox("Show Waterfall", &showWaterfall)) {
|
||
|
showWaterfall ? gui::waterfall.showWaterfall() : gui::waterfall.hideWaterfall();
|
||
|
core::configManager.aquire();
|
||
|
core::configManager.conf["showWaterfall"] = showWaterfall;
|
||
|
core::configManager.release(true);
|
||
|
}
|
||
|
}
|
||
|
}
|