Skip to content

Commit e1de7fa

Browse files
fix popup disposed error.
1 parent a2dffd9 commit e1de7fa

File tree

1 file changed

+3
-0
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/feedback

1 file changed

+3
-0
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/feedback/RatePopup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ public static synchronized void popup(@Nullable Project project) {
210210
popDaysLater(3);
211211

212212
final JFrame frame = ((JFrame) IdeUtils.getWindow(project));
213+
if (RatePopup.balloon.isDisposed()) {
214+
return;
215+
}
213216
RatePopup.balloon.show(new PositionTracker<>(frame.getRootPane()) {
214217
@Override
215218
public RelativePoint recalculateLocation(@NotNull Balloon balloon) {

0 commit comments

Comments
 (0)