Skip to content

Commit

Permalink
fix for non mac platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtarsi committed Nov 7, 2023
1 parent 613e289 commit 1f5aafd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/selenium-ide/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seleniumhq/selenium-ide",
"version": "4.0.0-alpha.55",
"version": "4.0.0-alpha.56",
"private": true,
"description": "Selenium IDE electron app",
"author": "Todd <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import kebabCase from 'lodash/fp/kebabCase'
import { Session } from 'main/types'
import storage from 'main/store'
import { join } from 'node:path'
import { platform } from 'node:os'
import BaseController from '../Base'
import { isAutomated } from 'main/util'

Expand All @@ -26,6 +27,8 @@ const playbackWindowOptions = {
},
}

const isMac = platform() === 'darwin'

const projectEditorWindowName = 'project-editor'

export type WindowLoader = (
Expand Down Expand Up @@ -284,7 +287,9 @@ export default class WindowsController extends BaseController {
bw.close()
})
const window = await this.openPlaybackWindow({ show: false })
window.setWindowButtonVisibility(false)
if (isMac) {
window.setWindowButtonVisibility(false)
}
await this.useWindowState(window, 'windowSizePlayback', 'windowPositionPlayback')
window.show()
}
Expand Down

0 comments on commit 1f5aafd

Please sign in to comment.