mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
Adjust zoom-slider in the statusbar if settings have been changed
This fixes the issue that changing the zoom-level in the settings does not update the zoom-slider in the statusbar.
This commit is contained in:
parent
a8cb992feb
commit
47bff403fa
|
@ -448,9 +448,16 @@ void DolphinView::stopLoading()
|
|||
|
||||
void DolphinView::readSettings()
|
||||
{
|
||||
const int oldZoomLevel = m_container->zoomLevel();
|
||||
|
||||
GeneralSettings::self()->readConfig();
|
||||
m_container->readSettings();
|
||||
applyViewProperties();
|
||||
|
||||
const int newZoomLevel = m_container->zoomLevel();
|
||||
if (newZoomLevel != oldZoomLevel) {
|
||||
emit zoomLevelChanged(newZoomLevel, oldZoomLevel);
|
||||
}
|
||||
}
|
||||
|
||||
void DolphinView::writeSettings()
|
||||
|
|
Loading…
Reference in a new issue