mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-34109 Can't open the link in the "PHP interpreter is not configured" popup
This commit is contained in:
+3
-3
@@ -20,7 +20,7 @@ import com.intellij.openapi.wm.ToolWindowManager
|
||||
|
||||
import java.util.concurrent.atomic.AtomicReference
|
||||
|
||||
class SingletonNotificationManager(private val group: NotificationGroup, private val type: NotificationType, private val listener: NotificationListener?) {
|
||||
class SingletonNotificationManager(private val group: NotificationGroup, private val type: NotificationType, private val defaultListener: NotificationListener?) {
|
||||
private val notification = AtomicReference<Notification>()
|
||||
|
||||
private val expiredListener by lazy {
|
||||
@@ -33,11 +33,11 @@ class SingletonNotificationManager(private val group: NotificationGroup, private
|
||||
}
|
||||
|
||||
fun notify(content: String, project: Project?): Boolean {
|
||||
return notify("", content, project, listener)
|
||||
return notify("", content, project, defaultListener)
|
||||
}
|
||||
|
||||
@JvmOverloads
|
||||
fun notify(title: String, content: String, project: Project? = null, listener: NotificationListener? = null): Boolean {
|
||||
fun notify(title: String, content: String, project: Project? = null, listener: NotificationListener? = defaultListener): Boolean {
|
||||
val oldNotification = notification.get()
|
||||
// !oldNotification.isExpired() is not enough - notification could be closed, but not expired
|
||||
if (oldNotification != null) {
|
||||
|
||||
Reference in New Issue
Block a user