fix exploded tests
This commit is contained in:
parent
267b0a017a
commit
a014cf55b9
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue