Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ function getAppMenu( mainWindow: BrowserWindow | null ) {
{ role: 'zoomOut' },
{ type: 'separator' },
{ role: 'togglefullscreen' },
{ type: 'separator' },
{
label: __( 'Float on Top of All Other Windows' ),
Comment thread
fluiddot marked this conversation as resolved.
type: 'checkbox',
checked: mainWindow?.isAlwaysOnTop(),
click: ( _menuItem, browserWindow ) => {
if ( browserWindow ) {
browserWindow.setAlwaysOnTop( ! browserWindow.isAlwaysOnTop(), 'floating' );
}
},
},
],
},
...( process.platform === 'win32'
Expand Down