We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a1af9 commit d5baa6dCopy full SHA for d5baa6d
cosmic-settings/src/pages/desktop/wallpaper/mod.rs
@@ -1154,6 +1154,10 @@ impl Context {
1154
}
1155
1156
fn add_custom_image(&mut self, path: PathBuf, display: Image, selection: ImageHandle) {
1157
+ if self.paths.values().any(|p| p == &path) {
1158
+ return;
1159
+ }
1160
+
1161
let key = self.paths.insert(path);
1162
self.is_custom.insert(key, ());
1163
self.display_images.insert(key, display);
0 commit comments