From 7a661ee8698668b1565c70ec8bbd3d4841ae0899 Mon Sep 17 00:00:00 2001 From: Billy Date: Sun, 14 Apr 2024 01:43:43 +0530 Subject: [PATCH] fix: Regenerate command palette actionset on late setup (nightly) --- biscuit/__init__.py | 2 +- biscuit/core/settings/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/biscuit/__init__.py b/biscuit/__init__.py index f364c64c..d962a21e 100644 --- a/biscuit/__init__.py +++ b/biscuit/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.68.0" +__version__ = "2.69.0" __version_info__ = tuple([int(num) for num in __version__.split(".")]) # For tests to run successfully diff --git a/biscuit/core/settings/__init__.py b/biscuit/core/settings/__init__.py index 33886ee2..af617541 100644 --- a/biscuit/core/settings/__init__.py +++ b/biscuit/core/settings/__init__.py @@ -47,7 +47,6 @@ def __init__(self, base: App) -> None: self.commands = [] self.setup_font() - self.gen_actionset() def register_command(self, command: str, callback: typing.Callable) -> None: """ @@ -100,6 +99,7 @@ def late_setup(self) -> None: self.commands = [(formalize_command(name), lambda _, method=method: method(self.base.commands)) for name, method in extract_commands(self.base.commands)] + self.gen_actionset() self.base.palette.register_actionset(lambda: self.actionset) from biscuit.core.components import ActionSet diff --git a/pyproject.toml b/pyproject.toml index 6092ace5..fec073c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "biscuit" -version = "2.68.0" +version = "2.69.0" description = "The uncompromising code editor" authors = ["Billy "] license = "MIT"