diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2024-08-15 10:15:54 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2024-08-15 13:43:43 +0200 |
commit | 836abb5b367f438f18ab58953a6f3d5b4bc903e4 (patch) | |
tree | 57118e83b6632411593cc1093ae86ea06cf52eb7 /sfx2/source/sidebar/TabBar.cxx | |
parent | 0cde8913d8cb183224d03d5cbb37072e63e745d1 (diff) |
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.mcnamara@collabora.com>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sfx2/source/sidebar/TabBar.cxx')
-rw-r--r-- | sfx2/source/sidebar/TabBar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); |