Avoid the sentry prompt in kicad-cli

Fixes KICAD-47
This commit is contained in:
Marek Roszko 2023-01-27 06:51:43 -05:00
parent e3fa447f0c
commit d8bde5bcfe
1 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,9 @@ void PGM_BASE::sentryInit()
void PGM_BASE::sentryPrompt()
{
if( !IsGUI() )
return;
KIPLATFORM::POLICY::STATE policyState =
KIPLATFORM::POLICY::GetPolicyState( POLICY_KEY_DATACOLLECTION );