File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
src/main/session/controllers/Windows
side-api/src/commands/menus Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " selenium-ide" ,
3- "version" : " 4.0.1-alpha.76 " ,
3+ "version" : " 4.0.1-alpha.77 " ,
44 "private" : false ,
55 "description" : " Selenium IDE electron app" ,
66 "author" :
" Todd <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -392,14 +392,14 @@ export default class WindowsController extends BaseController {
392392 positionKey : string
393393 ) {
394394 this . arrangeWindow ( window , sizeKey , positionKey )
395- window . on ( 'moved' , ( ) => {
395+ const recalculateEverything = ( ) => {
396396 const position = window . getPosition ( ) as [ number , number ]
397397 this . session . store . set ( positionKey as any , position )
398- } )
399- window . on ( 'resize' , ( ) => {
400398 const size = window . getSize ( ) as [ number , number ]
401399 this . session . store . set ( sizeKey as any , size )
402- } )
400+ } ;
401+ window . on ( 'moved' , recalculateEverything )
402+ window . on ( 'resize' , recalculateEverything )
403403 }
404404
405405 async onProjectLoaded ( ) {
Original file line number Diff line number Diff line change 1- import { MenuNames } from " ./open"
1+ import { MenuNames } from ' ./open'
22
33export type Type = 'Handler'
44/**
55 * Opens one of our available menu types, and returns the name of the selected option.
66 */
7- export type Shape = (
8- name : MenuNames ,
9- ...args : any [ ]
10- ) => Promise < any >
7+ export type Shape = ( name : MenuNames , ...args : any [ ] ) => Promise < any >
You can’t perform that action at this time.
0 commit comments