From 7548787a7e58224a8f42dde6b3524167e83c8ed5 Mon Sep 17 00:00:00 2001 From: Wojciech Trybus Date: Wed, 14 Jun 2023 20:27:33 +0200 Subject: [PATCH] Fix a bug of pie labels not changing position when config changed (2) --- README.md | 2 +- shortcut_composer/INFO.py | 2 +- shortcut_composer/manual.html | 2 +- .../templates/pie_menu_utils/widget_utils/label_holder.py | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 922e56a7..29415720 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Shortcut composer **v1.3.1** +# Shortcut composer **v1.3.2** [![python](https://img.shields.io/badge/Python-3.8-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org) [![Code style: black](https://img.shields.io/badge/code%20style-autopep8-333333.svg)](https://pypi.org/project/autopep8/) diff --git a/shortcut_composer/INFO.py b/shortcut_composer/INFO.py index 6aa08882..ad6b66bb 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.3.1" +__version__ = "1.3.2" __author__ = "Wojciech Trybus" __license__ = "GPL-3.0-or-later" diff --git a/shortcut_composer/manual.html b/shortcut_composer/manual.html index bde5d2c9..79e8b864 100644 --- a/shortcut_composer/manual.html +++ b/shortcut_composer/manual.html @@ -9,7 +9,7 @@ -

Shortcut composer v1.3.1

+

Shortcut composer v1.3.2


Extension for painting application Krita, which allows to create custom, complex keyboard shortcuts.

The plugin adds new shortcuts of the following types:

diff --git a/shortcut_composer/templates/pie_menu_utils/widget_utils/label_holder.py b/shortcut_composer/templates/pie_menu_utils/widget_utils/label_holder.py index 56e1da89..acdf02fa 100644 --- a/shortcut_composer/templates/pie_menu_utils/widget_utils/label_holder.py +++ b/shortcut_composer/templates/pie_menu_utils/widget_utils/label_holder.py @@ -103,7 +103,9 @@ def reset(self, notify: bool = True) -> None: return # Reset is not needed when labels did not change from last reset current_labels = [widget.label for widget in self.widget_holder] - if current_labels == self._labels: + # HACK: Labels need to be reset after config was changed, even + # when the values are still the same + if current_labels == self._labels and notify: return for child in self.widget_holder: