diff --git a/README.md b/README.md
index 3b01962..d2493a0 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
layers_content_toolbox
======================
-Package for [KLayout](https://www.klayout.de) adding two items to the right-click menu in the "Layers" pane:
+Package for (KLayout)[https://www.klayout.de] adding two items to the right-click menu in the "Layers" pane:
- `Make All Valid`: Makes all layers valid (interactable) and visible. Adds hotkey Ctrl+Shift+V.
- `Change Layer for Objects`: Same as `Edit -> Selection -> Change Layer`
diff --git a/doc/context_menu.jpg b/doc/context_menu.jpg
index 889b36d..f8d0f38 100644
Binary files a/doc/context_menu.jpg and b/doc/context_menu.jpg differ
diff --git a/grain.xml b/grain.xml
index c20bd08..3f06563 100644
--- a/grain.xml
+++ b/grain.xml
@@ -3,7 +3,7 @@
layers_context_toolbox
false
- 1.2
+ 1.0
Layers context toolbox
Adds items to the "Layers" pane context menu: "Change Layer of Objects", "Make All Valid"
@@ -13,7 +13,7 @@
Jan Petykiewicz
jan@mpxd.net
- 2025-04-10T20:14:31
+ 2025-04-10T16:58:24
diff --git a/pymacros/change_layer.lym b/pymacros/change_layer.lym
index 9ff2cdc..e2d16c6 100644
--- a/pymacros/change_layer.lym
+++ b/pymacros/change_layer.lym
@@ -1,6 +1,6 @@
- add "Change Layer of Objects" to layer context menu
+ add "Change Layer of Selection" to layer context menu
pymacros
@@ -33,6 +33,5 @@ new_action.title = 'Change Layer of Objects'
new_action.on_triggered = change_layer_action.trigger
menu.insert_separator('@lcp_context_menu.end', 'tb_separator')
-menu.insert_item('@lcp_context_menu.end', 'change_layer', new_action)
-
+menu.insert_item('@lcp_context_menu.end', 'change_layer', new_action)
diff --git a/pymacros/set_all_valid.lym b/pymacros/set_all_valid.lym
index de049eb..e014da5 100644
--- a/pymacros/set_all_valid.lym
+++ b/pymacros/set_all_valid.lym
@@ -1,6 +1,6 @@
- add "Make All Valid" to layer context menu
+ add "Set All Valid" to layer context menu
pymacros
@@ -9,19 +9,19 @@
true
false
3
-
+ Ctrl+Shift+V
false
@lcp_context_menu.end
python
"""
-Add "Make All Valid" to Layer context menu
+Add "Change Layer of Objects" to Layer context menu
"""
import pya
-def make_all_valid():
+def set_all_valid():
view = pya.LayoutView.current()
for layer in view.each_layer():
layer.valid = True
@@ -31,10 +31,8 @@ mw = pya.Application.instance().main_window()
menu = mw.menu()
new_action = pya.Action()
-new_action.title = 'Make All Valid'
-new_action.on_triggered = make_all_valid
-new_action.default_shortcut = 'Ctrl+Shift+V'
+new_action.title = 'Set All Valid'
+new_action.on_triggered = set_all_valid
-menu.insert_item('@lcp_context_menu.rename', 'make_all_valid', new_action)
-
+menu.insert_item('@lcp_context_menu.invvalid', 'change_layer', new_action)