chore(wallpaper): Remove unused Message variant
This commit is contained in:
parent
38a0f54769
commit
45ca79e0b2
1 changed files with 0 additions and 23 deletions
|
|
@ -80,8 +80,6 @@ pub enum Message {
|
||||||
CacheDisplayImage,
|
CacheDisplayImage,
|
||||||
/// Selects an option in the category dropdown menu.
|
/// Selects an option in the category dropdown menu.
|
||||||
ChangeCategory(Category),
|
ChangeCategory(Category),
|
||||||
/// Changes the displayed images in the wallpaper view.
|
|
||||||
ChangeFolder(Context),
|
|
||||||
/// Emits a wallpaper event.
|
/// Emits a wallpaper event.
|
||||||
Event(WallpaperEvent),
|
Event(WallpaperEvent),
|
||||||
/// Handles messages from the color dialog.
|
/// Handles messages from the color dialog.
|
||||||
|
|
@ -696,27 +694,6 @@ impl Page {
|
||||||
|
|
||||||
Message::CacheDisplayImage => self.cache_display_image(),
|
Message::CacheDisplayImage => self.cache_display_image(),
|
||||||
|
|
||||||
Message::ChangeFolder(mut context) => {
|
|
||||||
// Reassign custom colors and images to the new context.
|
|
||||||
std::mem::swap(&mut context, &mut self.selection);
|
|
||||||
|
|
||||||
for color in context.custom_colors {
|
|
||||||
self.selection.add_custom_color(color);
|
|
||||||
}
|
|
||||||
|
|
||||||
for image in context.custom_images {
|
|
||||||
let path = context.paths.remove(image);
|
|
||||||
let display = context.display_images.remove(image);
|
|
||||||
let selection = context.selection_handles.remove(image);
|
|
||||||
|
|
||||||
if let Some(((display, selection), path)) = display.zip(selection).zip(path) {
|
|
||||||
self.selection.add_custom_image(path, display, selection);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
self.select_first_wallpaper();
|
|
||||||
}
|
|
||||||
|
|
||||||
Message::ColorAdd(message) => {
|
Message::ColorAdd(message) => {
|
||||||
match message {
|
match message {
|
||||||
ColorPickerUpdate::ActionFinished => {
|
ColorPickerUpdate::ActionFinished => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue