From: Soeren Apel Date: Wed, 6 Nov 2019 20:16:01 +0000 (+0100) Subject: Fix #1362 by also saving decoder visibility X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=722c76245c024d06812d132eb355e738b2436bff;p=pulseview.git Fix #1362 by also saving decoder visibility --- diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index 4a802c3b..ec2b6a23 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -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& options = decoder->options(); @@ -608,6 +609,7 @@ void DecodeSignal::restore_settings(QSettings &settings) make_shared(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();