mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 19:23:43 +01:00
- Bug-Fix: Use LinkedHashMap instead of swift standard dict which preserves insertion order
This commit is contained in:
@@ -60,7 +60,7 @@ extension AddSourceViewController
|
|||||||
|
|
||||||
class AddSourceViewController: UICollectionViewController
|
class AddSourceViewController: UICollectionViewController
|
||||||
{
|
{
|
||||||
private var stagedForAdd: [Source: Bool] = [:]
|
private var stagedForAdd: LinkedHashMap<Source, Bool> = LinkedHashMap()
|
||||||
|
|
||||||
private lazy var dataSource = self.makeDataSource()
|
private lazy var dataSource = self.makeDataSource()
|
||||||
private lazy var addSourceDataSource = self.makeAddSourceDataSource()
|
private lazy var addSourceDataSource = self.makeAddSourceDataSource()
|
||||||
@@ -817,7 +817,7 @@ private extension AddSourceViewController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// remove this kv pair
|
// remove this kv pair
|
||||||
self.stagedForAdd.removeValue(forKey: staged.source)
|
_ = self.stagedForAdd.removeValue(forKey: staged.source)
|
||||||
}
|
}
|
||||||
catch is CancellationError {
|
catch is CancellationError {
|
||||||
isCancelled = true
|
isCancelled = true
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
"testTargets" : [
|
"testTargets" : [
|
||||||
{
|
{
|
||||||
"skippedTests" : [
|
"skippedTests" : [
|
||||||
"UITests",
|
|
||||||
"UITests\/testBulkAddRecommendedSources()",
|
|
||||||
"UITests\/testLaunchPerformance()",
|
"UITests\/testLaunchPerformance()",
|
||||||
"UITestsLaunchTests",
|
"UITestsLaunchTests",
|
||||||
"UITestsLaunchTests\/testLaunch()"
|
"UITestsLaunchTests\/testLaunch()"
|
||||||
|
|||||||
Reference in New Issue
Block a user