Skip to content

Commit 66f16a6

Browse files
committed
bugfix: app crash
Signed-off-by: 82Flex <[email protected]>
1 parent 2f1e950 commit 66f16a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

TrollFools/AppListView.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,18 @@ class AppListModel {
5151
!id.hasPrefix("com.tigisoftware."),
5252
!id.hasPrefix("ch.xxtou."),
5353
let url = $0.bundleURL(),
54-
let teamID = $0.teamID()
54+
let teamID = $0.teamID(),
55+
let localizedName = $0.localizedName(),
56+
let shortVersionString = $0.shortVersionString()
5557
else {
5658
return nil
5759
}
5860
return App(
5961
id: id,
60-
name: $0.localizedName() ?? "",
62+
name: localizedName,
6163
teamID: teamID,
6264
url: url,
63-
version: $0.shortVersionString()
65+
version: shortVersionString
6466
)
6567
}
6668
.filter { Injector.isEligibleBundle($0.url) }

0 commit comments

Comments
 (0)