From a470cab7b23ddbc83a4541e7a5b03bb2fd56ebf3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 27 Aug 2023 17:11:23 +0100 Subject: [PATCH] Include description for page settings command. --- eeschema/tools/sch_editor_control.cpp | 1 + pcbnew/tools/board_editor_control.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index 0e2e442005..a115361a7d 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -179,6 +179,7 @@ int SCH_EDITOR_CONTROL::PageSetup( const TOOL_EVENT& aEvent ) ITEM_PICKER wrapper( m_frame->GetScreen(), undoItem, UNDO_REDO::PAGESETTINGS ); undoCmd.PushItem( wrapper ); + undoCmd.SetDescription( _( "Page Settings" ) ); m_frame->SaveCopyInUndoList( undoCmd, UNDO_REDO::PAGESETTINGS, false, false ); DIALOG_EESCHEMA_PAGE_SETTINGS dlg( m_frame, VECTOR2I( MAX_PAGE_SIZE_EESCHEMA_MILS, diff --git a/pcbnew/tools/board_editor_control.cpp b/pcbnew/tools/board_editor_control.cpp index 2b438a049d..9f92227569 100644 --- a/pcbnew/tools/board_editor_control.cpp +++ b/pcbnew/tools/board_editor_control.cpp @@ -293,6 +293,7 @@ int BOARD_EDITOR_CONTROL::PageSettings( const TOOL_EVENT& aEvent ) ITEM_PICKER wrapper( nullptr, undoItem, UNDO_REDO::PAGESETTINGS ); undoCmd.PushItem( wrapper ); + undoCmd.SetDescription( _( "Page Settings" ) ); m_frame->SaveCopyInUndoList( undoCmd, UNDO_REDO::PAGESETTINGS ); DIALOG_PAGES_SETTINGS dlg( m_frame, pcbIUScale.IU_PER_MILS, VECTOR2I( MAX_PAGE_SIZE_PCBNEW_MILS,