Disable auto-refill zones
We need a more advanced dirtying system for this to work out for
many users, it turns out. Right now too many changes cause full
zone refills which interrupt workflow.
(cherry picked from commit d8f4d04093
)
This commit is contained in:
parent
d5eb242295
commit
a091ab76d7
|
@ -43,7 +43,7 @@
|
|||
|
||||
|
||||
///! Update the schema version whenever a migration is required
|
||||
const int pcbnewSchemaVersion = 4;
|
||||
const int pcbnewSchemaVersion = 5;
|
||||
|
||||
|
||||
PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
||||
|
@ -168,7 +168,7 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
|||
&m_Use45DegreeLimit, false ) );
|
||||
|
||||
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_AllowFreePads, false ) );
|
||||
|
@ -620,6 +620,14 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
|||
// This is actually a migration for APP_SETTINGS_BASE::m_LibTree
|
||||
return migrateLibTreeWidth();
|
||||
} );
|
||||
|
||||
registerMigration( 4, 5,
|
||||
[&]() -> bool
|
||||
{
|
||||
// This default proved to be unpopular; bump it off for everyone
|
||||
Set( "editing.auto_fill_zones", false );
|
||||
return true;
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue