cui/source/options/optgdlg.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 0bfbee2e99a6e2f7e1408a5fc12c86508cfc60c2
Author:     Kira Tubo <[email protected]>
AuthorDate: Mon Jun 24 17:59:06 2024 -0700
Commit:     Michael Weghorn <[email protected]>
CommitDate: Thu Jul 18 07:37:56 2024 +0200

    tdf#155069 Make "Run Graphics Test" button experimental
    
    Hide "Run Graphics Test" button unless Experimental Mode is turned on.
    
    Change-Id: Idcfe2627e525626cce9dd866a9b697c69599626f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169480
    Reviewed-by: Heiko Tietze <[email protected]>
    Tested-by: Jenkins
    (cherry picked from commit 6d5de74fb33d0bdd0fa4f44bfc6bc2b02c37aa11)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170558
    Reviewed-by: Michael Weghorn <[email protected]>

diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 7364ba963896..fcf93ef00d8b 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -632,7 +632,11 @@ OfaViewTabPage::OfaViewTabPage(weld::Container* pPage, 
weld::DialogController* p
     m_xIconStyleLB->set_active(0);
 
     m_xMoreIcons->connect_clicked(LINK(this, OfaViewTabPage, 
OnMoreIconsClick));
-    m_xRunGPTests->connect_clicked( LINK( this, OfaViewTabPage, 
OnRunGPTestClick));
+    m_xRunGPTests->connect_clicked(LINK(this, OfaViewTabPage, 
OnRunGPTestClick));
+
+    // Hide "Run Graphics Test" button if Experimental Mode is off
+    if (!officecfg::Office::Common::Misc::ExperimentalMode::get())
+        m_xRunGPTests->hide();
 }
 
 void OfaViewTabPage::UpdateIconThemes()

Reply via email to