From 2765d987b242c9d63ff321dff8d8fe10333b65a4 Mon Sep 17 00:00:00 2001 From: Wojciech Trybus Date: Fri, 14 Apr 2023 18:52:33 +0200 Subject: [PATCH] Fix MultipleAssignment actions sharing one configuration window --- README.md | 4 ++-- shortcut_composer/INFO.py | 2 +- shortcut_composer/core_components/instruction_base.py | 6 +++++- shortcut_composer/manual.html | 3 ++- shortcut_composer/templates/multiple_assignment.py | 9 ++++++--- .../multiple_assignment_utils/settings_handler.py | 5 ++--- shortcut_composer/templates/pie_menu.py | 2 +- shortcut_composer/templates/raw_instructions.py | 5 +++-- shortcut_composer/templates/temporary_key.py | 2 +- 9 files changed, 23 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index d335147a..14c13052 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The plugin adds new shortcuts of the following types: [![PIE MENUS - introducing Shortcut Composer](http://img.youtube.com/vi/Tkf2-U0OyG4/0.jpg)](https://www.youtube.com/watch?v=Tkf2-U0OyG4 "PIE MENUS - introducing Shortcut Composer") - +- [hotfix **1.2.2**] - Fixed MultipleAssignment actions sharing one configuration window. - [hotfix **1.2.1**] - Fixed pie menus in edit mode hiding when clicked outside on the canvas. @@ -34,7 +34,7 @@ The plugin adds new shortcuts of the following types: - Make `input_adapter` package independent from the rest of the plugin to improve re-usability. - Fix crash when picking a deleted preset with PieMenu. -Check out historic [changelogs](https://github.com/wojtryb/Shortcut-Composer/wiki/Change-log). +Check out historic [changelogs](https://github.com/wojtryb/Shortcut-Composer/releases). ## Plugin release video: diff --git a/shortcut_composer/INFO.py b/shortcut_composer/INFO.py index a9b835af..638a0d70 100644 --- a/shortcut_composer/INFO.py +++ b/shortcut_composer/INFO.py @@ -1,6 +1,6 @@ # SPDX-FileCopyrightText: © 2022-2023 Wojciech Trybus # SPDX-License-Identifier: GPL-3.0-or-later -__version__ = "1.2.1" +__version__ = "1.2.2" __author__ = "Wojciech Trybus" __license__ = "GPL-3.0-or-later" diff --git a/shortcut_composer/core_components/instruction_base.py b/shortcut_composer/core_components/instruction_base.py index 28e412d0..155b7427 100644 --- a/shortcut_composer/core_components/instruction_base.py +++ b/shortcut_composer/core_components/instruction_base.py @@ -27,9 +27,13 @@ class InstructionHolder: respective method in every stored Instruction. """ - def __init__(self, instructions: List[Instruction] = []) -> None: + def __init__(self, instructions: List[Instruction]) -> None: self._instructions = instructions + def append(self, instruction: Instruction): + """Add new instruction to the list on runtime.""" + self._instructions.append(instruction) + def _template(self, method_name: str) -> None: """Perform method `method_name` of each held instruction.""" for instruction in self._instructions: diff --git a/shortcut_composer/manual.html b/shortcut_composer/manual.html index 4ac575a2..7895cebb 100644 --- a/shortcut_composer/manual.html +++ b/shortcut_composer/manual.html @@ -30,6 +30,7 @@

Shortcut composer

What's new in 1.2

Added

@@ -63,7 +64,7 @@

Fixed

  • Fix crash when picking a deleted preset with PieMenu.
  • -

    Check out historic changelogs.

    +

    Check out historic changelogs.

    Requirements