Kaydet (Commit) 9f36f90b authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

Use an own config setting for screenshot mode instead of experimental mode

This is not an experimental feature and it should be possible to enable it
without enabling other features.

Change-Id: Idbdce23d0db2983a4eb1c8e1d02d15c43733f042
Reviewed-on: https://gerrit.libreoffice.org/30848Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 567580bd
......@@ -5651,6 +5651,12 @@
</info>
<value>false</value>
</prop>
<prop oor:name="ScreenshotMode" oor:type="xs:boolean" oor:nillable="false">
<info>
<desc>Determines whether the interactive screenshot mode should be enabled.</desc>
</info>
<value>false</value>
</prop>
<prop oor:name="CollectUsageInformation" oor:type="xs:boolean" oor:nillable="false">
<info>
<desc>Determines whether the usage information (like what actions
......
......@@ -198,9 +198,9 @@ void VclContainer::Command(const CommandEvent& rCEvt)
{
if (rCEvt.IsMouseEvent() && CommandEventId::ContextMenu == rCEvt.GetCommand())
{
const bool bIsExperimentalMode(officecfg::Office::Common::Misc::ExperimentalMode::get());
const bool bScreenshotMode(officecfg::Office::Common::Misc::ScreenshotMode::get());
if (bIsExperimentalMode)
if (bScreenshotMode)
{
bool bVisibleChildren(false);
vcl::Window* pChild(nullptr);
......@@ -326,7 +326,7 @@ void VclContainer::Command(const CommandEvent& rCEvt)
// consume event when:
// - CommandEventId::ContextMenu
// - bIsExperimentalMode
// - bScreenshotMode
// - bVisibleChildren
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment