mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 01:03:27 +01:00
[FIX] Issues introduced by changes to the AltSource specification.
This commit is contained in:
@@ -64,11 +64,13 @@ class NotificationManager: ObservableObject {
|
||||
|
||||
self.showNotification(title: text, detailText: detailText)
|
||||
}
|
||||
|
||||
|
||||
func showNotification(title: String, detailText: String?) {
|
||||
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 {
|
||||
self.notifications.removeValue(forKey: notificationId)
|
||||
|
||||
Reference in New Issue
Block a user