Skip to content

Commit

Permalink
fix exploded tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PolisanTheEasyNick committed Aug 18, 2024
1 parent 267b0a0 commit a014cf5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/main/firstLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ export function createFirstLaunchTour() {
console.log(data);
State.store.firstLaunch = false;
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.arRPC = !!data.richPresence;

Expand Down
2 changes: 1 addition & 1 deletion src/main/mainWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ export async function createWindows() {
initArRPC();
}

export function getAccentColor() {
export function getAccentColor(): Promise<string> {
if (process.platform === "linux") {
return new Promise((resolve, reject) => {
const sessionBus = dbus.sessionBus();
Expand Down

0 comments on commit a014cf5

Please sign in to comment.