Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix action name inconsistency between Ten Brushes and Ten Scripts

Timothée Giet441c30bc22de
diff --git a/plugins/python/tenbrushes/tenbrushes.action b/plugins/python/tenbrushes/tenbrushes.action
index e9db60db49..40e2cea270 100644
--- a/plugins/python/tenbrushes/tenbrushes.action
+++ b/plugins/python/tenbrushes/tenbrushes.action
@@ -135,7 +135,7 @@
<Action name="activate_preset_0">
<icon></icon>
- <text>Activate Brush Preset 10</text>
+ <text>Activate Brush Preset 0</text>
<whatsThis></whatsThis>
<toolTip></toolTip>
<iconText></iconText>
diff --git a/plugins/python/tenscripts/tenscripts.action b/plugins/python/tenscripts/tenscripts.action
index 911f2fa96c..0012585891 100644
--- a/plugins/python/tenscripts/tenscripts.action
+++ b/plugins/python/tenscripts/tenscripts.action
@@ -110,9 +110,9 @@
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
- <Action name="execute_script_10">
+ <Action name="execute_script_0">
<icon></icon>
- <text>Execute Script 10</text>
+ <text>Execute Script 0</text>
<whatsThis></whatsThis>
<toolTip></toolTip>
<iconText></iconText>
diff --git a/plugins/python/tenscripts/tenscripts.py b/plugins/python/tenscripts/tenscripts.py
index 8c9b4ad395..06a28d6cfb 100644
--- a/plugins/python/tenscripts/tenscripts.py
+++ b/plugins/python/tenscripts/tenscripts.py
@@ -48,7 +48,7 @@ class TenScriptsExtension(Extension):
def loadActions(self, window):
for index, item in enumerate(['1', '2', '3', '4', '5',
- '6', '7', '8', '9', '10']):
+ '6', '7', '8', '9', '0']):
action = window.createAction(
"execute_script_" + item,
str(i18n("Execute Script {num}")).format(num=item),