diff --git a/sleap/gui/app.py b/sleap/gui/app.py index 7dc21566b..5fa5a4d9f 100644 --- a/sleap/gui/app.py +++ b/sleap/gui/app.py @@ -1037,6 +1037,9 @@ def new_instance_menu_action(): helpMenu.addSeparator() helpMenu.addAction("Keyboard Shortcuts", self._show_keyboard_shortcuts_window) + helpMenu.addSeparator() + helpMenu.addAction("What's New?", self.commands.showBulletin) + def process_events_then(self, action: Callable): """Decorates a function with a call to first process events.""" diff --git a/sleap/gui/commands.py b/sleap/gui/commands.py index 90f40397e..81ce7e340 100644 --- a/sleap/gui/commands.py +++ b/sleap/gui/commands.py @@ -623,6 +623,10 @@ def openPrereleaseVersion(self): """Open the current prerelease version.""" self.execute(OpenPrereleaseVersion) + def showBulletin(self): + """Opens the latest bulletin""" + self.execute(ShowBulletin) + # File Commands @@ -3398,6 +3402,12 @@ def do_action(context: CommandContext, params: dict): context.openWebsite(rls.url) +class ShowBulletin(AppCommand): + @staticmethod + def do_action(context: CommandContext, params: dict): + context.app.bulletin_dialog() + + def copy_to_clipboard(text: str): """Copy a string to the system clipboard.