Skip to content

Commit 88b2e82

Browse files
committed
Short circuit path resolution loop if resolved
1 parent c6408e0 commit 88b2e82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cosmic-settings/src/pages/system/default_apps.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ impl Page {
270270
let full_path = path.join([appid, ".desktop"].concat());
271271
if full_path.exists() && full_path.is_file() {
272272
resolved_path = Some(full_path);
273+
break;
273274
}
274275
}
275276

0 commit comments

Comments
 (0)