Skip to content

Commit

Permalink
#209: Fix Lutris root auto-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Jun 23, 2024
1 parent cdd2f3f commit 23cec24
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/resource/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,14 +1326,12 @@ impl Config {
None
};

if self.roots.iter().any(|root| match root {
Root::Lutris(stored) => {
stored.path.equivalent(&path) && (stored.database.is_some() || database.is_none())
for root in &self.roots {
if let Root::Lutris(stored) = root {
if stored.path.equivalent(&path) && (stored.database.is_some() || database.is_none()) {
continue 'lutris;
}
}
_ => true,
}) || checked.contains(&path)
{
continue;
}

roots.push(Root::Lutris(root::Lutris {
Expand Down

0 comments on commit 23cec24

Please sign in to comment.