Switch zone auto-fill default to false.
This commit is contained in:
parent
0677ef6510
commit
298940e3d3
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
|
|
||||||
///! Update the schema version whenever a migration is required
|
///! Update the schema version whenever a migration is required
|
||||||
const int pcbnewSchemaVersion = 1;
|
const int pcbnewSchemaVersion = 2;
|
||||||
|
|
||||||
|
|
||||||
PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
||||||
|
@ -72,7 +72,7 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
||||||
m_PolarCoords( false ),
|
m_PolarCoords( false ),
|
||||||
m_RotationAngle( ANGLE_90 ),
|
m_RotationAngle( ANGLE_90 ),
|
||||||
m_ShowPageLimits( true ),
|
m_ShowPageLimits( true ),
|
||||||
m_AutoRefillZones( true ),
|
m_AutoRefillZones( false ),
|
||||||
m_AllowFreePads( false ),
|
m_AllowFreePads( false ),
|
||||||
m_PnsSettings( nullptr ),
|
m_PnsSettings( nullptr ),
|
||||||
m_FootprintViewerZoom( 1.0 )
|
m_FootprintViewerZoom( 1.0 )
|
||||||
|
@ -127,7 +127,7 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
||||||
&m_Use45DegreeLimit, false ) );
|
&m_Use45DegreeLimit, false ) );
|
||||||
|
|
||||||
m_params.emplace_back( new PARAM<bool>( "editing.auto_fill_zones",
|
m_params.emplace_back( new PARAM<bool>( "editing.auto_fill_zones",
|
||||||
&m_AutoRefillZones, true ) );
|
&m_AutoRefillZones, false ) );
|
||||||
|
|
||||||
m_params.emplace_back( new PARAM<bool>( "editing.allow_free_pads",
|
m_params.emplace_back( new PARAM<bool>( "editing.allow_free_pads",
|
||||||
&m_AllowFreePads, false ) );
|
&m_AllowFreePads, false ) );
|
||||||
|
@ -535,6 +535,16 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
||||||
return true;
|
return true;
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
registerMigration( 1, 2,
|
||||||
|
[&]()
|
||||||
|
{
|
||||||
|
// In version 1 this meant "after Zone Properties dialog", but it now means
|
||||||
|
// "everywhere" so we knock it off on transition.
|
||||||
|
Set( "editing.auto_fill_zones", false );
|
||||||
|
|
||||||
|
return true;
|
||||||
|
} );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue