You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
# Unreleased Changes
2
2
3
+
# 0.10.3
4
+
Fixes a crash that may occur after updating to 0.10.2.
5
+
3
6
# 0.10.2
4
7
This update fixes more issues with the Homebrew check introduced in a recent update. Thank you for your continued reports, [please keep them coming][1]!
5
8
@@ -35,7 +38,7 @@ This update fixes many issues with the Homebrew check introduced in the last upd
35
38
# 0.10
36
39
#### New and Improved:
37
40
- Added update checking via Homebrew Cask, which should allow for many more updates to be found
38
-
- The app list is now sorted by recently updated apps. Sort by app name can be restored via the main menu: View > Sort By > Name
41
+
- The app list is now sorted by recently updated apps. Sort by app name can be restored via the main menu: View \> Sort By \> Name
39
42
- Improved messages when no release notes are available
Copy file name to clipboardExpand all lines: Latest/Model/Update Repository/UpdateRepository.swift
+21-11Lines changed: 21 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -57,48 +57,58 @@ class UpdateRepository {
57
57
}
58
58
59
59
/// Entries are still being fetched, add the request to the queue.
60
-
queue.async{
61
-
ifself.entries ==nil{
62
-
self.pendingRequests.append(checkApp)
60
+
queue.async{[weak self]in
61
+
guardlet self else{return}
62
+
63
+
ifself.pendingRequests !=nil{
64
+
self.pendingRequests?.append(checkApp)
63
65
}else{
64
66
checkApp()
65
67
}
66
68
}
67
69
}
68
70
69
71
/// List of entries stored within the repository.
70
-
privatevarentries:[Entry]?
72
+
privatevarentries:[Entry]!
71
73
72
74
/// A list of requests being performed while the repository was still fetching data.
73
-
privatevarpendingRequests:[()->Void]=[]
75
+
///
76
+
/// It also acts as a flag for whether initialization finished. The array is initialized when the repository is created. It will be set to nil once `finalize()` is being called.
77
+
privatevarpendingRequests:[()->Void]?=[]
74
78
75
79
/// A set of bundle identifiers for which update checking is currently not supported.
// Finding the correct entry is not trivial as there is no bundle identifier stored in an entry. We have a list of app names (could be ambiguous) and a list of bundle identifier guesses.
97
106
// However, both app names and bundle identifiers may occur in more than one entry:
98
107
// - App Names: Might occur multiple times for similar apps (Telegram.app for Desktop vs. Telegram.app for Mac)
99
108
// - Bundle Identifiers: Might occur multiple times for apps in bundles (com.microsoft.word in Word.app and Office bundle)
100
109
//
101
110
// Strategy: Find all entries that point to the given app name. If only one entry comes up, return that. Otherwise, try to match bundle identifiers to narrow it down.
0 commit comments