chore: upgrade electron (#2577)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { App, Shell } from 'electron'
|
||||
import { App, Shell, Event } from 'electron'
|
||||
import { AppState } from './AppState'
|
||||
import { createExtensionsServer } from './javascripts/Main/ExtensionsServer'
|
||||
import { Keychain } from './javascripts/Main/Keychain/Keychain'
|
||||
@@ -52,7 +52,7 @@ function focusWindow(appState: AppState) {
|
||||
}
|
||||
|
||||
function registerSingleInstanceHandler(app: Electron.App, appState: AppState) {
|
||||
app.on('second-instance', (_event: Event, argv: string[]) => {
|
||||
app.on('second-instance', (_event: Event, argv: string[], _workingDirectory: string, _additionalData: unknown) => {
|
||||
if (isWindows()) {
|
||||
appState.deepLinkUrl = argv.find((arg) => arg.startsWith(deepLinkScheme))
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ export async function checkForUpdate(appState: AppState, state: UpdateState, use
|
||||
state.setCheckingForUpdate(true)
|
||||
|
||||
try {
|
||||
const result = await autoUpdater.checkForUpdates()
|
||||
const result = userTriggered ? await autoUpdater.checkForUpdatesAndNotify() : await autoUpdater.checkForUpdates()
|
||||
|
||||
if (!result) {
|
||||
return
|
||||
|
||||
@@ -69,12 +69,44 @@ panel-resizer {
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
/* Required for BrowserWindow titleBarStyle: 'hiddenInset' */
|
||||
.mac-desktop #navigation,
|
||||
.mac-desktop #navigation .section-title-bar,
|
||||
.mac-desktop #items-title-bar,
|
||||
.mac-desktop #editor-title-bar,
|
||||
.mac-desktop #lock-screen {
|
||||
/* https://github.com/electron/electron/issues/37789 */
|
||||
.mac-desktop #navigation {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.mac-desktop #navigation-content {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
.mac-desktop #navigation-content .section-title-bar .title {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.mac-desktop #items-title-bar {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.mac-desktop #items-title-bar input,
|
||||
.mac-desktop #items-title-bar button {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
.mac-desktop #editor-title-bar {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.mac-desktop #editor-title-bar input,
|
||||
.mac-desktop #editor-title-bar button {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
.mac-desktop [data-dialog]::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user