Commit ec8f757f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Status Bar] Don't mess with status bar visibility in extensions

"Extensions" is additions to the status bar like free space bar
and zoom slider which should hide while loading.

The status bar itself should only show/hide based on the global setting.

BUG: 443132
parent 077fdfc0
Pipeline #102624 passed with stage
in 4 minutes and 51 seconds
......@@ -124,6 +124,7 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent) :
topLayout->addWidget(m_progressTextLabel);
topLayout->addWidget(m_progressBar);
setVisible(GeneralSettings::showStatusBar());
setExtensionsVisible(true);
setWhatsThis(xi18nc("@info:whatsthis Statusbar", "<para>This is "
"the <emphasis>Statusbar</emphasis>. It contains three elements "
......@@ -245,6 +246,7 @@ int DolphinStatusBar::zoomLevel() const
void DolphinStatusBar::readSettings()
{
setVisible(GeneralSettings::showStatusBar());
setExtensionsVisible(true);
}
......@@ -321,15 +323,13 @@ void DolphinStatusBar::updateZoomSliderToolTip(int zoomLevel)
void DolphinStatusBar::setExtensionsVisible(bool visible)
{
bool showStatusBar = visible;
bool showSpaceInfo = visible;
bool showZoomSlider = visible;
if (visible) {
showStatusBar = GeneralSettings::showStatusBar();
showSpaceInfo = GeneralSettings::showSpaceInfo();
showZoomSlider = GeneralSettings::showZoomSlider();
}
setVisible(showStatusBar);
m_spaceInfo->setShown(showSpaceInfo);
m_spaceInfo->setVisible(showSpaceInfo);
m_zoomSlider->setVisible(showZoomSlider);
......
Supports Markdown
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