mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
Hide 'duplicate features' actions by default
Since there's a number of serious outstanding issues with these tools, hide them by default and show them only if a QgsSettings flag is set ("tools\showDuplicateFeatureActions"). This allows the tools to be reworked for 3.2, while still making them accessible for users who require their functionality.
This commit is contained in:
parent
585a4d3782
commit
43350a9a3e
@ -33,3 +33,8 @@ connections-xyz\OpenStreetMap\zmin=0
|
|||||||
# Default help location to include
|
# Default help location to include
|
||||||
# for now this is online version of the User Guide for latest (LTR) release
|
# for now this is online version of the User Guide for latest (LTR) release
|
||||||
helpSearchPath=https://docs.qgis.org/$qgis_short_version/$qgis_locale/docs/user_manual/
|
helpSearchPath=https://docs.qgis.org/$qgis_short_version/$qgis_locale/docs/user_manual/
|
||||||
|
|
||||||
|
[app]
|
||||||
|
|
||||||
|
# If true, the experimental "duplicate feature" actions will be shown in the QGIS UI
|
||||||
|
tools\showDuplicateFeatureActions=false
|
@ -7488,6 +7488,9 @@ void QgisApp::setupLayoutManagerConnections()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void QgisApp::setupDuplicateFeaturesAction()
|
void QgisApp::setupDuplicateFeaturesAction()
|
||||||
|
{
|
||||||
|
QgsSettings settings;
|
||||||
|
if ( settings.value( QStringLiteral( "tools/showDuplicateFeatureActions" ), false, QgsSettings::App ).toBool() )
|
||||||
{
|
{
|
||||||
mDuplicateFeatureAction.reset( new QgsMapLayerAction( tr( "Duplicate feature" ),
|
mDuplicateFeatureAction.reset( new QgsMapLayerAction( tr( "Duplicate feature" ),
|
||||||
nullptr, QgsMapLayerAction::SingleFeature,
|
nullptr, QgsMapLayerAction::SingleFeature,
|
||||||
@ -7511,6 +7514,7 @@ void QgisApp::setupDuplicateFeaturesAction()
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void QgisApp::setupAtlasMapLayerAction( QgsPrintLayout *layout, bool enableAction )
|
void QgisApp::setupAtlasMapLayerAction( QgsPrintLayout *layout, bool enableAction )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user