Skip to content

Commit

Permalink
Merge pull request #730 from cjcliffe/appimage_configload
Browse files Browse the repository at this point in the history
Move config load out of commandline parse to prevent wrong path in AppImage
  • Loading branch information
cjcliffe authored May 14, 2019
2 parents 0131c4d + 1f188a3 commit 0fa818c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CubicSDR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ class ActionDialogBookmarkLoadFailed : public ActionDialog {

CubicSDR::CubicSDR() : frequency(0), offset(0), ppm(0), snap(1), sampleRate(DEFAULT_SAMPLE_RATE), agcMode(false)
{
config.load();

sampleRateInitialized.store(false);
agcMode.store(true);
soloMode.store(false);
Expand Down Expand Up @@ -550,8 +552,6 @@ bool CubicSDR::OnCmdLineParsed(wxCmdLineParser& parser) {
config.setConfigName(confName->ToStdString());
}
}

config.load();

#ifdef BUNDLE_SOAPY_MODS
if (parser.Found("b")) {
Expand Down

0 comments on commit 0fa818c

Please sign in to comment.