mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 21:58:37 -05:00
Fix #565, Solo mode is now saved into session files
This commit is contained in:
parent
ae74023864
commit
33107bfa9e
@ -2026,6 +2026,7 @@ void AppFrame::saveSession(std::string fileName) {
|
|||||||
|
|
||||||
*header->newChild("center_freq") = wxGetApp().getFrequency();
|
*header->newChild("center_freq") = wxGetApp().getFrequency();
|
||||||
*header->newChild("sample_rate") = wxGetApp().getSampleRate();
|
*header->newChild("sample_rate") = wxGetApp().getSampleRate();
|
||||||
|
*header->newChild("solo_mode") = wxGetApp().getSoloMode()?1:0;
|
||||||
|
|
||||||
if (waterfallCanvas->getViewState()) {
|
if (waterfallCanvas->getViewState()) {
|
||||||
DataNode *viewState = header->newChild("view_state");
|
DataNode *viewState = header->newChild("view_state");
|
||||||
@ -2143,6 +2144,16 @@ bool AppFrame::loadSession(std::string fileName) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (header->hasAnother("solo_mode")) {
|
||||||
|
|
||||||
|
int solo_mode_activated = *header->getNext("solo_mode");
|
||||||
|
|
||||||
|
wxGetApp().setSoloMode((solo_mode_activated > 0) ? true : false);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
wxGetApp().setSoloMode(false);
|
||||||
|
}
|
||||||
|
|
||||||
DemodulatorInstance *loadedActiveDemod = nullptr;
|
DemodulatorInstance *loadedActiveDemod = nullptr;
|
||||||
DemodulatorInstance *newDemod = nullptr;
|
DemodulatorInstance *newDemod = nullptr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user