mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
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:
1 parent
a0e502f75e
commit
380b471bb5
2 files changed
+2
-2
No files matched your search
@@ -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() ) );
|
||||
|
||||
Reference in new issue
Block a user