Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyTurtleDev committed Feb 19, 2024
1 parent 19821ec commit 61e60c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions more-wallpapers/src/linux/xfce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ pub(crate) fn get_screens() -> Result<Vec<Screen>, WallpaperError> {
let third = split.next();
if split.next().is_some() {
//to long -> wrong key
break;
continue;
}
let (Some(first), Some(second)) = (first, second) else {
//to short -> wrong key
break;
continue;
};
let (screen_name, key_type, active) = if let Some(third) = third {
// if name exist out of two part, the screen is active.
Expand All @@ -50,7 +50,7 @@ pub(crate) fn get_screens() -> Result<Vec<Screen>, WallpaperError> {
};
if !(key_type == "last_image" || key_type == "image_style") {
// wrong key
break;
continue;
}
let value = load_property(line)?;
let screen = screens.entry(screen_name.clone()).or_insert_with(|| Screen {
Expand Down

0 comments on commit 61e60c8

Please sign in to comment.