Skip to content

Commit

Permalink
Merge pull request #3599 from h3poteto/iss-3573
Browse files Browse the repository at this point in the history
refs #3573 Enable reload shortcut key
  • Loading branch information
h3poteto committed Sep 4, 2022
2 parents 7967d50 + b91fdd9 commit f52ff4b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import {
Notification,
NotificationConstructorOptions,
nativeTheme,
IpcMainInvokeEvent,
globalShortcut
IpcMainInvokeEvent
} from 'electron'
import Datastore from 'nedb'
import { isEmpty } from 'lodash'
Expand Down Expand Up @@ -452,13 +451,6 @@ app.on('activate', () => {
}
})

app.on('browser-window-focus', () => {
// Disable reload
globalShortcut.register('CommandOrControl+R', () => {
console.log('CommandOrControl+R is pressed: Shortcut Disabled')
})
})

const auth = new Authentication(accountRepo)

type AuthRequest = {
Expand Down

0 comments on commit f52ff4b

Please sign in to comment.