Draft: reintroduced grid button in snap toolbar

This commit is contained in:
carlopav
2020-04-22 09:15:48 +02:00
committed by Yorik van Havre
parent d59224a4be
commit 18cfafeed8
4 changed files with 30 additions and 2 deletions

View File

@@ -217,6 +217,9 @@ def init_draft_statusbar(sb):
snap_gui_commands.remove('Draft_Snap_WorkingPlane')
if 'Draft_Snap_Dimensions' in snap_gui_commands:
snap_gui_commands.remove('Draft_Snap_Dimensions')
if 'Draft_ToggleGrid' in snap_gui_commands:
snap_gui_commands.remove('Draft_ToggleGrid')
Gui.Snapper.init_draft_snap_buttons(snap_gui_commands,snaps_menu, "_Statusbutton")
Gui.Snapper.restore_snap_buttons_state(snaps_menu, "_Statusbutton")

View File

@@ -123,6 +123,7 @@ def get_draft_snap_commands():
'Draft_Snap_Special', 'Draft_Snap_Near',
'Draft_Snap_Ortho', 'Draft_Snap_Grid',
'Draft_Snap_WorkingPlane', 'Draft_Snap_Dimensions',
'Separator', 'Draft_ToggleGrid'
]