Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ To run the **electron app**:
pnpm start
```

To reload the app with the changes that `pnpm watch` has detected, you can use the `CmdOrCtrl+R` shortcut.

### Tests

There are 2 checks:
Expand Down
8 changes: 8 additions & 0 deletions src/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ const browserWindowOpts = {
};

const contextMenu = Menu.buildFromTemplate([
{
role: 'reload',
},
{
role: 'toggleDevTools',
},
{ type: 'separator' },
{
label: 'Quit',
click: () => {
Expand Down Expand Up @@ -80,6 +87,7 @@ app.whenReady().then(async () => {
mb.window.setSize(800, 600);
mb.window.center();
mb.window.resizable = true;
mb.window.setAlwaysOnTop(true);
});

mb.window.webContents.on('devtools-closed', () => {
Expand Down