fix: Clear out the IPC listener if sources length is 1
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
This commit is contained in:
parent
c1e9437835
commit
403e069a22
|
|
@ -197,6 +197,9 @@ export function createMainWindow() {
|
||||||
.then((sources) => {
|
.then((sources) => {
|
||||||
// Shortcut for linux wayland.
|
// Shortcut for linux wayland.
|
||||||
if (sources.length == 1) {
|
if (sources.length == 1) {
|
||||||
|
// Clear out the IPC listener
|
||||||
|
mainWindow.webContents.send("screenpicker", []);
|
||||||
|
|
||||||
// TODO: Get audio to work with wayland
|
// TODO: Get audio to work with wayland
|
||||||
// See vencord for an implementation using a virtual microphone.
|
// See vencord for an implementation using a virtual microphone.
|
||||||
callback({
|
callback({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue