You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case: an app may have opened different windows which the user may close.
When re-launching the app, only windows that were opened when the app exited should be re-opened.
Having an additional property isOpen (that defaults to true) in the window state would fix the problem. Closing a specific window would set state.isOpen to false.
Code like this could be used:
constuserListState=windowStateKeeper({file: 'userList'});// only open userList window if it was previously openedif(userListSate.isOpen){constuserListWindow=newBrowserWindow();// ...}
The text was updated successfully, but these errors were encountered:
Use case: an app may have opened different windows which the user may close.
When re-launching the app, only windows that were opened when the app exited should be re-opened.
Having an additional property
isOpen
(that defaults totrue
) in the window state would fix the problem. Closing a specific window would setstate.isOpen
tofalse
.Code like this could be used:
The text was updated successfully, but these errors were encountered: