]> sigrok.org Git - pulseview.git/commitdiff
Fix #1362 by also saving decoder visibility
authorSoeren Apel <redacted>
Wed, 6 Nov 2019 20:16:01 +0000 (21:16 +0100)
committerSoeren Apel <redacted>
Wed, 6 Nov 2019 20:16:01 +0000 (21:16 +0100)
pv/data/decodesignal.cpp

index 4a802c3b7b051b41803bb0ac22c5cfe0ce40280e..ec2b6a23f6e1aac6487ef0629d28e77b45a6218f 100644 (file)
@@ -540,6 +540,7 @@ void DecodeSignal::save_settings(QSettings &settings) const
                settings.beginGroup("decoder" + QString::number(decoder_idx++));
 
                settings.setValue("id", decoder->decoder()->id);
+               settings.setValue("shown", decoder->shown());
 
                // Save decoder options
                const map<string, GVariant*>& options = decoder->options();
@@ -608,6 +609,7 @@ void DecodeSignal::restore_settings(QSettings &settings)
                                        make_shared<decode::Decoder>(dec);
 
                                stack_.push_back(decoder);
+                               decoder->show(settings.value("shown", true).toBool());
 
                                // Restore decoder options that differ from their default
                                int options = settings.value("options").toInt();