mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
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:
parent
4bc3b9f59e
commit
469aa2efc2
2 changed files with 8 additions and 1 deletions
|
|
@ -222,6 +222,8 @@ namespace satdump
|
|||
|
||||
RecorderApplication::~RecorderApplication()
|
||||
{
|
||||
save_settings();
|
||||
|
||||
retry_vfo:
|
||||
for (auto &vfo : vfo_list)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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"; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue