Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Focus active webview when closing downloads-bar #7038

Merged
merged 1 commit into from
Feb 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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