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

New commits:
commit 6d5de74fb33d0bdd0fa4f44bfc6bc2b02c37aa11
Author:     Kira Tubo <kira.t...@gmail.com>
AuthorDate: Mon Jun 24 17:59:06 2024 -0700
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Tue Jul 16 10:20:19 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 <heiko.tie...@documentfoundation.org>
    Tested-by: Jenkins

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