[plasma/spectacle] src/Platforms: VideoPlatformWayland: Don't prematurely set Recording state

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 65aa0df266fdb791efd14489e6c41d3ade2650ab by Kai Uwe Broulik.
Committed on 31/07/2026 at 08:23.
Pushed by broulik into branch 'master'.

VideoPlatformWayland: Don't prematurely set Recording state

We set the state when we start the stream and then when we're actually
recording, which then no-ops.

We want the stream fully configured before announcing that it's started.

M  +0    -2    src/Platforms/VideoPlatformWayland.cpp

https://invent.kde.org/plasma/spectacle/-/commit/65aa0df266fdb791efd14489e6c41d3ade2650ab

diff --git a/src/Platforms/VideoPlatformWayland.cpp b/src/Platforms/VideoPlatformWayland.cpp
index ae5b7ffe8..5cd829fb9 100644
--- a/src/Platforms/VideoPlatformWayland.cpp
+++ b/src/Platforms/VideoPlatformWayland.cpp
@@ -259,8 +259,6 @@ void VideoPlatformWayland::startRecording(const QUrl &fileUrl, RecordingMode rec
             if (!m_recorder->output().isEmpty()) {
                 m_recorder->start();
             }
-            setRecordingMode(recordingMode);
-            setRecordingState(VideoPlatform::RecordingState::Recording);
         });
         connect(stream, &ScreencastingStream::failed, this, [this](const QString &error) {
             setRecordingState(VideoPlatform::RecordingState::NotRecording);
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.