[plasma/libkscreen] src: Merge duplicate HighDynamicRange capability check in serializeOutput()

zhang shoucheng <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit d3de94e3f69b8430dc7192565a3c901c1039403e by zhang shoucheng.
Committed on 22/07/2026 at 09:05.
Pushed by vladz into branch 'master'.

Merge duplicate HighDynamicRange capability check in serializeOutput()

M  +0    -2    src/configserializer.cpp

https://invent.kde.org/plasma/libkscreen/-/commit/d3de94e3f69b8430dc7192565a3c901c1039403e

diff --git a/src/configserializer.cpp b/src/configserializer.cpp
index 0c7a831a..f67bebe2 100644
--- a/src/configserializer.cpp
+++ b/src/configserializer.cpp
@@ -98,8 +98,6 @@ QJsonObject ConfigSerializer::serializeOutput(const OutputPtr &output)
     }
     if (output->capabilities() & Output::Capability::HighDynamicRange) {
         obj[QLatin1String("hdr")] = output->isHdrEnabled();
-    }
-    if (output->capabilities() & Output::Capability::HighDynamicRange) {
         obj[QLatin1String("sdr-brightness")] = static_cast<int>(output->sdrBrightness());
     }
     if (output->capabilities() & Output::Capability::WideColorGamut) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.