mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 18:45:22 +02:00
Added option to lock the menu order
This commit is contained in:
@ -91,6 +91,8 @@ namespace displaymenu {
|
||||
selectedWindow = std::clamp<int>((int)core::configManager.conf["fftWindow"], 0, _FFT_WINDOW_COUNT - 1);
|
||||
gui::mainWindow.setFFTWindow(selectedWindow);
|
||||
|
||||
gui::menu.locked = core::configManager.conf["lockMenuOrder"];
|
||||
|
||||
// Define and load UI scales
|
||||
uiScales.define(1.0f, "100%", 1.0f);
|
||||
uiScales.define(2.0f, "200%", 2.0f);
|
||||
@ -124,6 +126,12 @@ namespace displaymenu {
|
||||
core::configManager.release(true);
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox("Lock Menu Order##_sdrpp", &gui::menu.locked)) {
|
||||
core::configManager.acquire();
|
||||
core::configManager.conf["lockMenuOrder"] = gui::menu.locked;
|
||||
core::configManager.release(true);
|
||||
}
|
||||
|
||||
ImGui::LeftLabel("High-DPI Scaling");
|
||||
ImGui::FillWidth();
|
||||
if (ImGui::Combo("##sdrpp_ui_scale", &uiScaleId, uiScales.txt)) {
|
||||
|
Reference in New Issue
Block a user