sfx2/source/sidebar/TabBar.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 836abb5b367f438f18ab58953a6f3d5b4bc903e4
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Thu Aug 15 10:15:54 2024 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Thu Aug 15 13:43:43 2024 +0200

    Resolves tdf#162450 - Hide sidebar tab button
    
    Change-Id: I568976e2f6c8ca03f1aeea35d7607fdd5ea53649
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171887
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>

diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index c9a68edcf840..6f51faadeab1 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -143,7 +143,7 @@ void TabBar::SetDecks(const 
ResourceManager::DeckContextDescriptorContainer& rDe
         xItem->mbIsHidden = !xDescriptor->mbIsEnabled;
         xItem->mbIsHiddenByDefault = xItem->mbIsHidden; // the default is the 
state while creating
 
-        xItem->mxButton->set_sensitive(deck.mbIsEnabled);
+        xItem->mxButton->set_visible(deck.mbIsEnabled);
     }
 
     UpdateButtonIcons();
@@ -371,7 +371,7 @@ void TabBar::UpdateMenus()
         OUString sIdent("select" + OUString::number(nIndex));
         const bool bCurrentDeck = 
rItem->mxButton->get_item_active(u"toggle"_ustr);
         const bool bActive = !rItem->mbIsHidden;
-        const bool bEnabled = rItem->mxButton->get_sensitive();
+        const bool bEnabled = rItem->mxButton->get_visible();
         mxMainMenu->insert(nIndex, sIdent, sDisplayName, nullptr, nullptr, 
nullptr, TRISTATE_FALSE);
         mxMainMenu->set_active(sIdent, bCurrentDeck);
         mxMainMenu->set_sensitive(sIdent, bEnabled && bActive);

Reply via email to