mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-155300 Change non-sticky balloons behavior
This commit is contained in:
+1
@@ -835,6 +835,7 @@ public class NotificationsManagerImpl extends NotificationsManager {
|
||||
.setCloseButtonEnabled(buttons == null)
|
||||
.setShowCallout(showCallout)
|
||||
.setShadow(false)
|
||||
.setAnimationCycle(Registry.intValue("ide.new.notification.auto.hide.animation.time", 500))
|
||||
.setHideOnClickOutside(hideOnClickOutside)
|
||||
.setHideOnAction(hideOnClickOutside)
|
||||
.setHideOnKeyOutside(hideOnClickOutside)
|
||||
|
||||
@@ -857,6 +857,7 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
|
||||
mySmartFadeoutPaused = false;
|
||||
}
|
||||
else {
|
||||
setAnimationEnabled(true);
|
||||
hide();
|
||||
}
|
||||
}
|
||||
@@ -887,7 +888,12 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
|
||||
myFadeoutAlarm.cancelAllRequests();
|
||||
myFadeoutRequestMillis = System.currentTimeMillis();
|
||||
myFadeoutRequestDelay = fadeoutDelay;
|
||||
myFadeoutAlarm.addRequest(this::hide, fadeoutDelay, null);
|
||||
myFadeoutAlarm.addRequest(() -> {
|
||||
if (mySmartFadeout) {
|
||||
setAnimationEnabled(true);
|
||||
}
|
||||
hide();
|
||||
}, fadeoutDelay, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -485,6 +485,7 @@ ide.ui.scale=1.0
|
||||
|
||||
ide.new.notification.enabled=true
|
||||
ide.new.notification.visible.count=2
|
||||
ide.new.notification.auto.hide.animation.time=500
|
||||
|
||||
ide.open.file.in.temp.project.dir=true
|
||||
ide.open.file.in.temp.project.dir.description=Enables opening file in temp project directory
|
||||
|
||||
Reference in New Issue
Block a user