Move export dock layout action to experimental features

Gate the 'Export Layout to Clipboard' window menu action behind the experimental
features registry instead of RiaApplication::enableDevelopmentFeatures(). Register
the 'export-dock-layout' feature and drop the now-unused RiaApplication include.
This commit is contained in:
Kristian Bendiksen committed 2026-06-01 16:41:00 +02:00
1 parent a0e502f75e
commit 380b471bb5
2 files changed
+2 -2

No files matched your search

@@ -32,6 +32,7 @@ const std::vector<RiaExperimentalFeatures::Feature>& RiaExperimentalFeatures::av
static const std::vector<Feature> features = {
{ "osdu-well-logs", "OSDU Well Logs", "Enable import of well logs from OSDU." },
{ "undo-redo-view", "Undo/Redo View", "Show the command undo/redo history view." },
{ "export-dock-layout", "Export Dock Layout", "Add a window menu action to export the dock layout to the clipboard." },
};
return features;
@@ -18,7 +18,6 @@
#include "RiuMainWindowBase.h"
#include "RiaApplication.h"
#include "RiaDefines.h"
#include "RiaPreferences.h"
#include "RiaPreferencesSystem.h"
@@ -768,7 +767,7 @@ void RiuMainWindowBase::addDefaultEntriesToWindowsMenu()
}
}
if ( RiaApplication::enableDevelopmentFeatures() )
if ( RiaPreferencesSystem::current()->isFeatureEnabled( "export-dock-layout" ) )
{
QAction* exportLayoutAction = m_windowMenu->addAction( "Export Layout to Clipboard" );
connect( exportLayoutAction, SIGNAL( triggered() ), this, SLOT( exportDockLayout() ) );