diff --git a/DSView/pv/config/appconfig.cpp b/DSView/pv/config/appconfig.cpp index 16b3896a..53306ba8 100644 --- a/DSView/pv/config/appconfig.cpp +++ b/DSView/pv/config/appconfig.cpp @@ -96,6 +96,7 @@ void _loadApp(AppOptions &o, QSettings &st){ getFiled("originalData", st, o.originalData, false); getFiled("ableSaveLog", st, o.ableSaveLog, false); getFiled("logLevel", st, o.logLevel, 3); + getFiled("transDecoderDlg", st, o.transDecoderDlg, true); QString fmt; getFiled("protocalFormats", st, fmt, ""); @@ -103,7 +104,7 @@ void _loadApp(AppOptions &o, QSettings &st){ StringToFormatArray(fmt, o.m_protocolFormats); } - st.endGroup(); + st.endGroup(); } void _saveApp(AppOptions &o, QSettings &st){ @@ -113,6 +114,7 @@ void _saveApp(AppOptions &o, QSettings &st){ setFiled("originalData", st, o.originalData); setFiled("ableSaveLog", st, o.ableSaveLog); setFiled("logLevel", st, o.logLevel); + setFiled("transDecoderDlg", st, o.transDecoderDlg); QString fmt = FormatArrayToString(o.m_protocolFormats); setFiled("protocalFormats", st, fmt); diff --git a/DSView/pv/config/appconfig.h b/DSView/pv/config/appconfig.h index 78f49da3..6eb06571 100644 --- a/DSView/pv/config/appconfig.h +++ b/DSView/pv/config/appconfig.h @@ -59,6 +59,7 @@ struct AppOptions bool originalData; bool ableSaveLog; int logLevel; + bool transDecoderDlg; std::vector m_protocolFormats; };