The lego11 is getting hard to manage. Yet another bug, this time recorder settings. Jamie help! At this rate we might have to give up and wait for lego12 (very sane commit, yes)

This commit is contained in:
Aang23 2025-08-08 19:04:31 +02:00
parent 4bc3b9f59e
commit 469aa2efc2
2 changed files with 8 additions and 1 deletions

View file

@ -222,6 +222,8 @@ namespace satdump
RecorderApplication::~RecorderApplication()
{
save_settings();
retry_vfo:
for (auto &vfo : vfo_list)
{

View file

@ -1,5 +1,6 @@
#pragma once
#include "core/config.h"
#include "handlers/handler.h"
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
@ -220,7 +221,11 @@ namespace satdump
RecorderApplication();
~RecorderApplication();
void save_settings() { satdump_cfg.main_cfg["user"]["recorder_state"] = serialize_config(); }
void save_settings()
{
satdump_cfg.main_cfg["user"]["recorder_state"] = serialize_config();
satdump_cfg.saveUser();
}
public:
std::string getID() { return "recorder"; }