Make sure cursor settings get saved.

Fixes https://gitlab.com/kicad/code/kicad/issues/11663
This commit is contained in:
Jeff Young 2022-09-10 18:43:13 +01:00
parent b95d9d660d
commit d5430906d4
1 changed files with 2 additions and 0 deletions

View File

@ -561,6 +561,7 @@ int COMMON_TOOLS::ToggleCursor( const TOOL_EVENT& aEvent )
auto& galOpts = m_frame->GetGalDisplayOptions();
galOpts.m_forceDisplayCursor = !galOpts.m_forceDisplayCursor;
galOpts.WriteConfig( m_toolMgr->GetSettings()->m_Window );
galOpts.NotifyChanged();
return 0;
@ -572,6 +573,7 @@ int COMMON_TOOLS::ToggleCursorStyle( const TOOL_EVENT& aEvent )
KIGFX::GAL_DISPLAY_OPTIONS& galOpts = m_frame->GetGalDisplayOptions();
galOpts.m_fullscreenCursor = !galOpts.m_fullscreenCursor;
galOpts.WriteConfig( m_toolMgr->GetSettings()->m_Window );
galOpts.NotifyChanged();
return 0;