mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Emit zoomLevelChanged() if the preview gets toggled
This commit is contained in:
parent
5c163a41c5
commit
0c206bda8e
1 changed files with 6 additions and 0 deletions
|
@ -259,8 +259,14 @@ void DolphinView::setPreviewsShown(bool show)
|
|||
ViewProperties props(viewPropertiesUrl());
|
||||
props.setPreviewsShown(show);
|
||||
|
||||
const int oldZoomLevel = m_view->zoomLevel();
|
||||
m_view->setPreviewsShown(show);
|
||||
emit previewsShownChanged(show);
|
||||
|
||||
const int newZoomLevel = m_view->zoomLevel();
|
||||
if (newZoomLevel != oldZoomLevel) {
|
||||
emit zoomLevelChanged(newZoomLevel, oldZoomLevel);
|
||||
}
|
||||
}
|
||||
|
||||
bool DolphinView::previewsShown() const
|
||||
|
|
Loading…
Reference in a new issue