Skip to content

Commit

Permalink
Use highest rest icon
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Sep 10, 2023
1 parent 827ecac commit 083cebb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Whisky/Views/Bottle Views/BottleView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ struct ShellLinkView: View {
}

if icons.count > 0 {
image = icons[0]
image = icons.max(by: { $0.size.height < $1.size.height })
}
} catch {
print(error)
Expand Down Expand Up @@ -345,7 +345,7 @@ struct ShortcutView: View {
}

if icons.count > 0 {
image = icons[0]
image = icons.max(by: { $0.size.height < $1.size.height })
}
} catch {
print(error)
Expand Down
2 changes: 1 addition & 1 deletion Whisky/Views/ProgramView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct ProgramView: View {
}

if icons.count > 0 {
image = icons[0]
image = icons.max(by: { $0.size.height < $1.size.height })
}
} catch {
print(error)
Expand Down

0 comments on commit 083cebb

Please sign in to comment.