Skip to content

Commit

Permalink
Focus active webview when closing downloads-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbe committed Feb 3, 2017
1 parent 1d936db commit 14d07d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/renderer/components/downloadsBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const ImmutableComponent = require('../../../js/components/immutableComponent')
const Button = require('../../../js/components/button')
const contextMenus = require('../../../js/contextMenus')
const windowActions = require('../../../js/actions/windowActions')
const webviewActions = require('../../../js/actions/webviewActions')
const DownloadItem = require('./downloadItem')

class DownloadsBar extends ImmutableComponent {
Expand All @@ -16,6 +17,7 @@ class DownloadsBar extends ImmutableComponent {
}
onHideDownloadsToolbar () {
windowActions.setDownloadsToolbarVisible(false)
webviewActions.setWebviewFocused()
}
render () {
const getComputedStyle = require('../getComputedStyle')
Expand Down

0 comments on commit 14d07d3

Please sign in to comment.