fix: Clear out the IPC listener if sources length is 1

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
This commit is contained in:
Jacob Schlecht 2026-04-19 11:45:44 -06:00
parent c1e9437835
commit 403e069a22
1 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,9 @@ export function createMainWindow() {
.then((sources) => {
// Shortcut for linux wayland.
if (sources.length == 1) {
// Clear out the IPC listener
mainWindow.webContents.send("screenpicker", []);
// TODO: Get audio to work with wayland
// See vencord for an implementation using a virtual microphone.
callback({