mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix EA-346945: expire notifications in AWT (later).
This commit is contained in:
@@ -18,6 +18,7 @@ package git4idea.roots;
|
||||
import com.intellij.idea.ActionsBundle;
|
||||
import com.intellij.notification.Notification;
|
||||
import com.intellij.notification.NotificationListener;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.openapi.options.ShowSettingsUtil;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -87,7 +88,14 @@ public class GitRootProblemNotifier {
|
||||
|
||||
private void expireNotification() {
|
||||
if (myNotification != null) {
|
||||
myNotification.expire();
|
||||
final Notification notification = myNotification;
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
notification.expire();
|
||||
}
|
||||
});
|
||||
|
||||
myNotification = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user