Fixed for tests
This commit is contained in:
parent
8d77870623
commit
2dc3ff6d9c
2 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@ import { isTruthy } from "shared/utils/guards";
|
||||||
import { once } from "shared/utils/once";
|
import { once } from "shared/utils/once";
|
||||||
import type { SettingsStore } from "shared/utils/SettingsStore";
|
import type { SettingsStore } from "shared/utils/SettingsStore";
|
||||||
|
|
||||||
import { ICON_PATH, SPEAKING_ICON_PATH, MUTED_ICON_PATH, DEAFENED_ICON_PATH, IDLE_ICON_PATH } from "../shared/paths";
|
import { DEAFENED_ICON_PATH, ICON_PATH, IDLE_ICON_PATH, MUTED_ICON_PATH, SPEAKING_ICON_PATH } from "../shared/paths";
|
||||||
import { createAboutWindow } from "./about";
|
import { createAboutWindow } from "./about";
|
||||||
import { initArRPC } from "./arrpc";
|
import { initArRPC } from "./arrpc";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-License-Identifier: GPL-3.0
|
* SPDX-License-Identifier: GPL-3.0
|
||||||
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
|
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
|
||||||
* Copyright (c) 2024 Vendicated and Vencord contributors
|
* Copyright (c) 2023 Vendicated and Vencord contributors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { findByPropsLazy, findStoreLazy, onceReady } from "@vencord/types/webpack";
|
import { findByPropsLazy, onceReady } from "@vencord/types/webpack";
|
||||||
import { FluxDispatcher, UserStore } from "@vencord/types/webpack/common";
|
import { FluxDispatcher, UserStore } from "@vencord/types/webpack/common";
|
||||||
|
|
||||||
const logger = new Vencord.Util.Logger("VesktopTray");
|
const logger = new Vencord.Util.Logger("VesktopTray");
|
||||||
|
@ -50,9 +50,9 @@ onceReady.then(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
FluxDispatcher.subscribe("RTC_CONNECTION_STATE", params => {
|
FluxDispatcher.subscribe("RTC_CONNECTION_STATE", params => {
|
||||||
if (params.state == "RTC_CONNECTED") {
|
if (params.state === "RTC_CONNECTED") {
|
||||||
VesktopNative.app.setTrayIcon("idle");
|
VesktopNative.app.setTrayIcon("idle");
|
||||||
} else if (params.state == "RTC_DISCONNECTED") {
|
} else if (params.state === "RTC_DISCONNECTED") {
|
||||||
VesktopNative.app.setTrayIcon("main");
|
VesktopNative.app.setTrayIcon("main");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue