Skip to content

Commit

Permalink
Reorder actions in update notification
Browse files Browse the repository at this point in the history
  • Loading branch information
opwvhk committed Mar 25, 2024
1 parent ad15860 commit 694825e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ private void notifyUserOfUpdate(@NotNull Project project, @NotNull IdeaPluginDes
@NotNull String newVersion, @Nullable String oldVersion) {
String changeNotes = plugin.getChangeNotes();
Consumer<Notification> addNotificationActions = notification -> {
// Values for idToSelect are in searchableOptions.xml; use this XPath: /option/configurable[configurable_name="AvroIDL"]@id
// (note: searchableOptions.xml is created when building the plugin)
notification.addAction(NotificationAction.createSimple("Open preferences",
() -> ShowSettingsUtilImpl.showSettingsDialog(project, "", "Avro IDL")));
notification.addAction(NotificationAction.createSimple("Ask questions",
() -> BrowserLauncher.getInstance().browse(URI.create(
"https://github.com/opwvhk/avro-schema-support/discussions"))));
notification.addAction(NotificationAction.createSimple("Report issues",
() -> BrowserLauncher.getInstance()
.browse(URI.create("https://github.com/opwvhk/avro-schema-support/issues"))));
// Values for idToSelect are in searchableOptions.xml; use this XPath: /option/configurable[configurable_name="AvroIDL"]@id
// (note: searchableOptions.xml is created when building the plugin)
notification.addAction(NotificationAction.createSimple("Open preferences",
() -> ShowSettingsUtilImpl.showSettingsDialog(project, "", "Avro IDL")));
};

String notificationTitle = oldVersion == null ?
Expand Down

0 comments on commit 694825e

Please sign in to comment.