fix exploded tests

This commit is contained in:
Oleh Polisan 2024-08-18 12:08:47 +03:00
parent 267b0a017a
commit a014cf55b9
2 changed files with 8 additions and 2 deletions

View file

@ -47,7 +47,13 @@ export function createFirstLaunchTour() {
console.log(data); console.log(data);
State.store.firstLaunch = false; State.store.firstLaunch = false;
Settings.store.tray = true; Settings.store.tray = true;
Settings.store.trayColor = getAccentColor()?.slice(1); getAccentColor().then(color => {
if (color) {
Settings.store.trayColor = color.slice(1);
} else {
Settings.store.trayColor = "F6BFAC";
}
});
Settings.store.minimizeToTray = !!data.minimizeToTray; Settings.store.minimizeToTray = !!data.minimizeToTray;
Settings.store.arRPC = !!data.richPresence; Settings.store.arRPC = !!data.richPresence;

View file

@ -506,7 +506,7 @@ export async function createWindows() {
initArRPC(); initArRPC();
} }
export function getAccentColor() { export function getAccentColor(): Promise<string> {
if (process.platform === "linux") { if (process.platform === "linux") {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const sessionBus = dbus.sessionBus(); const sessionBus = dbus.sessionBus();