提交 a2696143 编写于 作者: B Benjamin Pasero

notifications - never hide them when window does not have focus (fix #80285)

上级 0739b0f0
......@@ -236,12 +236,11 @@ export class NotificationsToasts extends Themable {
purgeTimeoutHandle = setTimeout(() => {
// If the notification is sticky or prompting and the window does not have
// focus, we wait for the window to gain focus again before triggering
// the timeout again. This prevents an issue where focussing the window
// could immediately hide the notification because the timeout was triggered
// again.
if ((item.sticky || item.hasPrompt()) && !this.windowService.hasFocus) {
// If the window does not have focus, we wait for the window to gain focus
// again before triggering the timeout again. This prevents an issue where
// focussing the window could immediately hide the notification because the
// timeout was triggered again.
if (!this.windowService.hasFocus) {
if (!listener) {
listener = this.windowService.onDidChangeFocus(focus => {
if (focus) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册