File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ To run the **electron app**:
3030pnpm start
3131```
3232
33+ To reload the app with the changes that ` pnpm watch ` has detected, you can use the ` CmdOrCtrl+R ` shortcut.
34+
3335### Tests
3436
3537There are 2 checks:
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ const browserWindowOpts = {
3434} ;
3535
3636const contextMenu = Menu . buildFromTemplate ( [
37+ {
38+ role : 'reload' ,
39+ } ,
40+ {
41+ role : 'toggleDevTools' ,
42+ } ,
43+ { type : 'separator' } ,
3744 {
3845 label : 'Quit' ,
3946 click : ( ) => {
@@ -80,6 +87,7 @@ app.whenReady().then(async () => {
8087 mb . window . setSize ( 800 , 600 ) ;
8188 mb . window . center ( ) ;
8289 mb . window . resizable = true ;
90+ mb . window . setAlwaysOnTop ( true ) ;
8391 } ) ;
8492
8593 mb . window . webContents . on ( 'devtools-closed' , ( ) => {
You can’t perform that action at this time.
0 commit comments