Remove focusWindow function
Not needed -- win.show() automatically focuses, unminimizes, and shows the window.
This commit is contained in:
@@ -65,6 +65,7 @@ function init () {
|
||||
})
|
||||
|
||||
ipcMain.on('openItem', function (e, path) {
|
||||
ipc.on('show', (e, ...args) => windows.main.show(...args))
|
||||
log('open item: ' + path)
|
||||
electron.shell.openItem(path)
|
||||
})
|
||||
@@ -87,10 +88,6 @@ function init () {
|
||||
shortcuts.onPlayerOpen()
|
||||
})
|
||||
|
||||
ipcMain.on('focusWindow', function (e, windowName) {
|
||||
windows.focusWindow(windows[windowName])
|
||||
})
|
||||
|
||||
ipcMain.on('downloadFinished', function (e, filePath) {
|
||||
if (app.dock) {
|
||||
// Bounces the Downloads stack if the filePath is inside the Downloads folder.
|
||||
|
||||
Reference in New Issue
Block a user