Skip to content

Commit 1f5aafd

Browse files
committed
fix for non mac platforms
1 parent 613e289 commit 1f5aafd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/selenium-ide/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/selenium-ide",
3-
"version": "4.0.0-alpha.55",
3+
"version": "4.0.0-alpha.56",
44
"private": true,
55
"description": "Selenium IDE electron app",
66
"author": "Todd <[email protected]>",

packages/selenium-ide/src/main/session/controllers/Windows/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import kebabCase from 'lodash/fp/kebabCase'
1212
import { Session } from 'main/types'
1313
import storage from 'main/store'
1414
import { join } from 'node:path'
15+
import { platform } from 'node:os'
1516
import BaseController from '../Base'
1617
import { isAutomated } from 'main/util'
1718

@@ -26,6 +27,8 @@ const playbackWindowOptions = {
2627
},
2728
}
2829

30+
const isMac = platform() === 'darwin'
31+
2932
const projectEditorWindowName = 'project-editor'
3033

3134
export type WindowLoader = (
@@ -284,7 +287,9 @@ export default class WindowsController extends BaseController {
284287
bw.close()
285288
})
286289
const window = await this.openPlaybackWindow({ show: false })
287-
window.setWindowButtonVisibility(false)
290+
if (isMac) {
291+
window.setWindowButtonVisibility(false)
292+
}
288293
await this.useWindowState(window, 'windowSizePlayback', 'windowPositionPlayback')
289294
window.show()
290295
}

0 commit comments

Comments
 (0)