mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
[FIX] Issues introduced by changes to the AltSource specification.
This commit is contained in:
committed by
Joe Mattiello
parent
1531c0a77f
commit
b9177e89c6
@@ -68,7 +68,9 @@ class NotificationManager: ObservableObject {
|
|||||||
func showNotification(title: String, detailText: String?) {
|
func showNotification(title: String, detailText: String?) {
|
||||||
let notificationId = UUID()
|
let notificationId = UUID()
|
||||||
|
|
||||||
self.notifications[notificationId] = Notification(id: notificationId, title: title, message: detailText)
|
DispatchQueue.main.async {
|
||||||
|
self.notifications[notificationId] = Notification(id: notificationId, title: title, message: detailText)
|
||||||
|
}
|
||||||
|
|
||||||
let dismissWorkItem = DispatchWorkItem {
|
let dismissWorkItem = DispatchWorkItem {
|
||||||
self.notifications.removeValue(forKey: notificationId)
|
self.notifications.removeValue(forKey: notificationId)
|
||||||
|
|||||||
@@ -162,19 +162,23 @@ struct AppDetailView: View {
|
|||||||
.bold()
|
.bold()
|
||||||
.font(.title3)
|
.font(.title3)
|
||||||
|
|
||||||
Text("\(L10n.AppDetailView.version) \(storeApp.version)")
|
if let version = storeApp.latestVersion?.version {
|
||||||
.font(.callout)
|
Text("\(L10n.AppDetailView.version) \(version)")
|
||||||
.foregroundColor(.secondary)
|
.font(.callout)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
VStack(alignment: .trailing) {
|
if let versionDate = storeApp.versionDate, let versionSize = storeApp.size {
|
||||||
Text(dateFormatter.string(from: storeApp.versionDate))
|
VStack(alignment: .trailing) {
|
||||||
Text(byteCountFormatter.string(fromByteCount: Int64(storeApp.size)))
|
Text(dateFormatter.string(from: versionDate))
|
||||||
|
Text(byteCountFormatter.string(fromByteCount: Int64(versionSize)))
|
||||||
|
}
|
||||||
|
.font(.callout)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
.font(.callout)
|
|
||||||
.foregroundColor(.secondary)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let versionDescription = storeApp.versionDescription {
|
if let versionDescription = storeApp.versionDescription {
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ struct MyAppsView: View {
|
|||||||
|
|
||||||
// TODO: Refactor
|
// TODO: Refactor
|
||||||
@SwiftUI.FetchRequest(sortDescriptors: [
|
@SwiftUI.FetchRequest(sortDescriptors: [
|
||||||
NSSortDescriptor(keyPath: \InstalledApp.storeApp?.versionDate, ascending: true),
|
NSSortDescriptor(keyPath: \InstalledApp.storeApp?.latestVersion?.date, ascending: true),
|
||||||
NSSortDescriptor(keyPath: \InstalledApp.name, ascending: true)
|
NSSortDescriptor(keyPath: \InstalledApp.name, ascending: true)
|
||||||
], predicate: NSPredicate(format: "%K == YES AND %K != nil AND %K != %K",
|
], predicate: NSPredicate(format: "%K == YES AND %K != nil AND %K != %K",
|
||||||
#keyPath(InstalledApp.isActive), #keyPath(InstalledApp.storeApp), #keyPath(InstalledApp.version), #keyPath(InstalledApp.storeApp.version)))
|
#keyPath(InstalledApp.isActive), #keyPath(InstalledApp.storeApp), #keyPath(InstalledApp.version), #keyPath(InstalledApp.storeApp.latestVersion.version)))
|
||||||
var updates: FetchedResults<InstalledApp>
|
var updates: FetchedResults<InstalledApp>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user