Verified Commit 1ae570e4 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/image: scroll to top after finishing adding images using file dialog

CCBUG: 455129
parent bf97a204
Pipeline #188594 passed with stage
in 12 minutes and 35 seconds
......@@ -28,6 +28,11 @@ Item {
wallpapersGrid.resetCurrentIndex();
}
}
function onWallpaperBrowseCompleted() {
// Scroll to top to view added images
wallpapersGrid.view.positionViewAtIndex(0, GridView.Beginning);
}
}
KCM.GridView {
......
......@@ -550,6 +550,7 @@ void ImageBackend::slotWallpaperBrowseCompleted()
m_model->addBackground(p);
}
Q_EMIT wallpaperBrowseCompleted();
Q_EMIT settingsChanged();
}
......
......@@ -143,6 +143,11 @@ Q_SIGNALS:
void uncheckedSlidesChanged();
void loadingChanged();
/**
* Emitted when the user finishes adding images using the file dialog.
*/
void wallpaperBrowseCompleted();
/**
* Emitted when system color scheme changes. The frontend is required to
* reload the wallpaper even if the image path is not changed.
......
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