Skip to content

Commit ad02d5c

Browse files
Fix lint in trayMenu helper after badge/tray E2E changes.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8be89e5 commit ad02d5c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

e2e/helpers/trayMenu.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ export async function openSettingsFromTray(app: ElectronApplication): Promise<Pa
4141
try {
4242
await clickTrayMenuItem(app, 'tray:settings');
4343
} catch {
44-
const labels = process.platform === 'darwin' ?
45-
['Preferences...', 'Preferences', 'tray:settings'] :
46-
['Settings...', 'Settings', '&Settings', 'tray:settings'];
44+
let labels: string[];
45+
if (process.platform === 'darwin') {
46+
labels = ['Preferences...', 'Preferences', 'tray:settings'];
47+
} else {
48+
labels = ['Settings...', 'Settings', '&Settings', 'tray:settings'];
49+
}
4750
let clicked = false;
4851
for (const label of labels) {
4952
try {

0 commit comments

Comments
 (0)